Function at 0x4ee5e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x314
push ebp
push esi
push edi
mov ebp, ecx
cmp dword [ebp + 0x120], 0
je 0x4eec19
mov eax, dword [ebp + 0x11c]
mov ecx, dword [eax + 0x20]
lea edi, [ebp + 0x11c]
push str.__RaceResults__n
push edi
call ecx
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
push str.__rFactorXML__n
push edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
add esp, 0x10
mov ecx, edi
call eax
fld qword [0xa1e878]
fcomp dword [0x5ae038]
fnstsw ax
test ah, 0x41
jne 0x4eec0f
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push 0
push str._results.xml
mov ecx, edi
call eax
cmp dword [ebp + 0x120], 0
je 0x4eec0f
mov eax, dword [0x679888]
test eax, eax
jne 0x4ee670
mov eax, 0x5ad73f
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0xffffffff
call fcn.00566e70
push str.Results_
lea ecx, [esp + 0x18]
call fcn.00566ee0
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x4ee6a5
mov ecx, 0x5ad73f
call fcn.0041ad30
xor eax, eax
cmp byte [0x9206e8], al
mov byte [esp + 0xc], 0
mov dword [esp + 0xd], eax
mov word [esp + 0x11], ax
mov byte [esp + 0x13], al
jne 0x4ee82f
mov eax, dword [0x8f71bc]
cmp eax, 0xd
ja case.default.0x4ee6d8
jmp dword [eax*4 + 0x4eec20]
mov cx, word [0x60df74]
mov dl, byte [0x60df76]
mov word [esp + 0xc], cx
mov byte [esp + 0xe], dl
jmp 0x4ee82f
mov ax, word [0x60df70]
mov cl, byte [0x60df72]
mov word [esp + 0xc], ax
mov byte [esp + 0xe], cl
jmp 0x4ee82f
mov dx, word [0x60df6c]
mov al, byte [0x60df6e]
jmp 0x4ee826
mov cx, word [0x60df68]
mov dl, byte [0x60df6a]
mov word [esp + 0xc], cx
mov byte [esp + 0xe], dl
jmp 0x4ee82f
mov ax, word [0x60df64]
mov cl, byte [0x60df66]
mov word [esp + 0xc], ax
mov byte [esp + 0xe], cl
jmp 0x4ee82f
mov dx, word [0x60df60]
mov al, byte [0x60df62]
jmp 0x4ee826
mov cx, word [0x60df5c]
mov dl, byte [0x60df5e]
mov word [esp + 0xc], cx
mov byte [esp + 0xe], dl
jmp 0x4ee82f
mov ax, word [0x60df58]
mov cl, byte [0x60df5a]
mov word [esp + 0xc], ax
mov byte [esp + 0xe], cl
jmp 0x4ee82f
mov dx, word [0x60df54]
mov al, byte [0x60df56]
jmp 0x4ee826
mov cx, word [0x60df50]
mov dl, byte [0x60df52]
mov word [esp + 0xc], cx
mov byte [esp + 0xe], dl
jmp 0x4ee82f
mov ax, word [0x60df4c]
mov cl, byte [0x60df4e]
mov word [esp + 0xc], ax
mov byte [esp + 0xe], cl
jmp 0x4ee82f
mov dx, word [0x60df48]
mov al, byte [0x60df4a]
jmp 0x4ee826
mov cx, word [0x60df44]
mov dl, byte [0x60df46]
mov word [esp + 0xc], cx
mov byte [esp + 0xe], dl
jmp 0x4ee82f
mov ax, word [0x60df40]
mov cl, byte [0x60df42]
mov word [esp + 0xc], ax
mov byte [esp + 0xe], cl
jmp 0x4ee82f
mov dx, word [0x60df3c]
mov al, byte [0x60df3e]
mov word [esp + 0xc], dx
mov byte [esp + 0xe], al
push 0
call fcn.0058eab3
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
call fcn.0058f112
mov esi, eax
call fcn.00588c7e
mov ecx, eax
lea edx, [esp + 0x14]
push edx
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esi + 4]
imul eax, eax, 0x64
sub ecx, eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esi]
push ecx
mov ecx, dword [esi + 0xc]
push edx
mov edx, dword [esi + 0x10]
push eax
mov eax, dword [esi + 0x14]
push ecx
add edx, 1
push edx
add eax, 0x76c
push eax
lea ecx, [esp + 0x108]
push str._d__0.2d__0.2d__0.2d__0.2d__0.2d__0.2d_s.xml
push ecx
call fcn.00589571
add esp, 0x30
lea edx, [esp + 0xe0]
push edx
lea ecx, [esp + 0x18]
call fcn.00566ee0
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x4ee8bf
mov edx, 0x5ad73f
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4ee8c4
sub eax, esi
push eax
push edx
lea ecx, [ebp + 0x1160]
call fcn.0040a500
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4ee8e9
mov eax, 0x5ad73f
push 0x5bc86c
push eax
call fcn.0058b491
mov esi, eax
add esp, 8
test esi, esi
je 0x4ee94e
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
push 0x200
lea ecx, [esp + 0x124]
push ecx
mov ecx, edi
call edx
test eax, eax
jle 0x4ee945
push esi
push eax
lea eax, [esp + 0x128]
push 1
push eax
call fcn.0058b709
mov edx, dword [edi]
mov edx, dword [edx + 0x1c]
add esp, 0x10
push 0x200
lea eax, [esp + 0x124]
push eax
mov ecx, edi
call edx
test eax, eax
jg 0x4ee917
push esi
call fcn.0058b205
add esp, 4
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
mov eax, dword [0x679888]
test eax, eax
jne 0x4ee965
mov eax, 0x5ad73f
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xffffffff
call fcn.00566e70
push str.Results_
lea ecx, [esp + 0x20]
call fcn.00566ee0
mov ecx, 0xa1a528
call fcn.00567630
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4ee9a4
mov eax, 0x5ad73f
push 1
push eax
push 0
push str..xml
mov ecx, 0xa1a528
call fcn.00567650
mov ecx, 0xa1a528
call fcn.00567160
cmp eax, dword [0x9206a0]
jle 0x4eebf8
lea ecx, [esp + 0x24]
call fcn.0056b630
mov ecx, 0xa1a528
call fcn.00567170
mov ebp, eax
test ebp, ebp
je 0x4eeb73
jmp 0x4ee9f0
mov eax, dword [str._d__d__d__d__d__d__d]
mov edx, dword [0x60def4]
mov ecx, dword [0x60def0]
mov dword [esp + 0x60], eax
mov eax, dword [0x60def8]
mov dword [esp + 0x68], edx
mov dl, byte [0x60df00]
mov dword [esp + 0x64], ecx
mov ecx, dword [0x60defc]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0xc]
mov byte [esp + 0x74], dl
mov dword [esp + 0x70], ecx
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4eea30
lea edi, [esp + 0x60]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4eea42
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x60]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4eea63
mov eax, dword [0x60dee8]
lea ecx, [esp + 0xa0]
push ecx
mov dword [edi], eax
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x80]
push eax
push ebp
call fcn.00589c18
add esp, 0x28
cmp eax, 8
jne 0x4eeb55
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x4eeac6
mov ecx, 0x5ad73f
mov eax, ecx
lea esi, [eax + 1]
jmp 0x4eead0
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4eead0
sub eax, esi
add eax, ecx
cmp eax, ecx
jbe 0x4eeaf2
cmp byte [eax], 0x5c
je 0x4eeaef
sub eax, 1
cmp eax, ecx
ja 0x4eeae1
jmp 0x4eeaf2
add eax, 1
push eax
push ebp
call fcn.00588ead
add esp, 8
test eax, eax
je 0x4eeb55
lea ecx, [esp + 0xa0]
push 0x60dee4
push ecx
call fcn.00588ead
add esp, 8
test eax, eax
jne 0x4eeb55
push 8
call fcn.00588cb9
add esp, 4
test eax, eax
je 0x4eeb33
push ebp
mov ecx, eax
call fcn.004069b0
mov esi, eax
jmp 0x4eeb35
xor esi, esi
mov eax, dword [esi]
test eax, eax
jne 0x4eeb40
mov eax, 0x5ad73f
push eax
call fcn.0058b0cc
add esp, 4
push 1
push esi
lea ecx, [esp + 0x2c]
call fcn.00406b80
mov ecx, 0xa1a528
call fcn.00567140
mov ecx, 0xa1a528
call fcn.00567170
mov ebp, eax
test ebp, ebp
jne 0x4ee9f0
push 1
lea ecx, [esp + 0x28]
call fcn.004440d0
mov edi, dword [0x9206c4]
add edi, 0xffffffff
cmp dword [esp + 0x34], edi
jle 0x4eebef
lea ecx, [ecx]
lea ecx, [esp + 0x24]
call fcn.004d3080
mov esi, eax
test esi, esi
je 0x4eebef
mov eax, dword [esi]
test eax, eax
mov ecx, eax
jne 0x4eebac
mov ecx, 0x5ad73f
mov eax, dword [0x679888]
test eax, eax
jne 0x4eebba
mov eax, 0x5ad73f
push ecx
push eax
lea edx, [esp + 0x128]
push str._sResults_s
push edx
call fcn.00589571
add esp, 0x10
lea ecx, [esp + 0x120]
call fcn.005689d0
push 1
push esi
lea ecx, [esp + 0x2c]
call fcn.004098b0
cmp dword [esp + 0x34], edi
jg 0x4eeb90
lea ecx, [esp + 0x24]
call fcn.00406be0
mov eax, dword [esp + 0x1c]
push eax
call fcn.0058881a
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0058881a
add esp, 8
mov ecx, str._results.xml
call fcn.00564620
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret