Function at 0x41d972
Capabilities:
Write file on windows

Disassembly:
push ebp
sub esp, 0xfc
lea ebp, [esp - 4]
mov eax, dword [0x4cb598]
xor eax, ebp
mov dword [ebp + 0xfc], eax
push 0x44
mov eax, 0x4a1120
call fcn.00475cc9
mov esi, ecx
lea eax, [ebp + 0x108]
push 0x4a69b8
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00401657
test al, al
pop ecx
pop ecx
je 0x41da00
call fcn.0044bc9f
push eax
lea ecx, [ebp - 0x10]
call fcn.0044be7a
push 0xf02f
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401566
mov esi, dword [ebp - 0x10]
push edi
push edi
push esi
call fcn.004535b7
lea ecx, [esi - 0x10]
call fcn.004010ea
mov esi, 0x1000
mov ecx, dword [ebp + 0x108]
add ecx, 0xfffffff0
call fcn.004010ea
mov eax, esi
jmp 0x41ddf3
mov ebx, dword [ebp + 0x108]
push 0x4abec8
push ebx
call fcn.00478a96
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x50], 0x20
mov dword [ebp - 0x4c], edi
mov word [ebp - 0x2c], 0xd
mov word [ebp - 0x2a], 0xa
mov word [ebp - 0x44], 0x5b
mov word [ebp - 0x42], 0x5d
mov word [ebp - 0x48], 0x28
mov word [ebp - 0x46], 0x29
mov byte [ebp - 0x20], 0xff
mov byte [ebp - 0x1f], 0xfe
je 0x41ddb4
push eax
push 1
lea eax, [ebp - 0x20]
push 2
push eax
call fcn.00479f37
add esp, 0x10
cmp dword [esi + 0x44541fe], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
jle 0x41dd57
mov eax, dword [ebp + 0x10c]
mov ecx, eax
mov dword [ebp - 0x3c], edi
imul ecx, ecx, 0x2328
lea edi, [esi + eax*2 + 0x4453bfe]
imul eax, eax, 0x8ca0
lea ebx, [esi + 0xf8abf2]
lea ecx, [ecx + esi + 0xf8]
lea eax, [eax + esi + 0xf97bfe]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x38], eax
push 0x50
lea eax, [ebp + 0xa0]
push 0
push eax
call fcn.004762a0
push 0xa0
lea eax, [ebp]
push 0
push eax
call fcn.004762a0
mov eax, dword [ebx + 0x34c9910]
lea ecx, [ebp + 0xa0]
push ecx
push dword [eax + 5]
movzx eax, byte [eax + 4]
push eax
push dword [0x4cca10]
call fcn.0044aae0
add esp, 0x28
test eax, eax
jne 0x41dd6f
push 0x50
lea eax, [ebp]
push eax
lea eax, [ebp + 0xa0]
push eax
call fcn.00401b11
mov eax, dword [ebp + 0x10c]
and dword [ebp - 0x34], 0
add esp, 0xc
cmp eax, dword [esi + 8]
jne 0x41db57
cmp word [edi], 0
jne 0x41db61
mov eax, dword [esi + 0x10]
add eax, dword [ebp - 0x3c]
push 2
movzx ecx, word [esi + eax*2 + 0x4453bfe]
pop edx
cmp ecx, edx
jle 0x41db48
lea eax, [ecx - 2]
add dword [ebp - 0x14], eax
lea edx, [eax + 2]
mov eax, dword [ebx]
cmp ecx, eax
jge 0x41db57
cmp edx, eax
je 0x41db57
sub eax, edx
add dword [ebp - 0x14], eax
cmp word [edi], 0
je 0x41dd21
push dword [ebp - 0x24]
lea eax, [ebp - 0x44]
push 1
push 2
push eax
call fcn.00479f37
push 2
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp]
push eax
xor ebx, ebx
call fcn.00476a57
add esp, 0x1c
test eax, eax
je 0x41dbb4
lea edi, [ebp]
push dword [ebp - 0x24]
push 1
push 2
push edi
call fcn.00479f37
push 2
lea eax, [ebp - 0x4c]
inc ebx
push eax
lea edi, [ebp + ebx*2]
push edi
call fcn.00476a57
add esp, 0x1c
test eax, eax
jne 0x41db8c
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x24]
push ebx
push 1
lea eax, [ebp - 0x42]
push 2
push eax
call fcn.00479f37
push ebx
push 1
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.00479f37
and dword [ebp - 0x1c], 0
add esp, 0x20
cmp word [edi], 0
jbe 0x41dceb
mov eax, dword [ebp - 0x14]
lea eax, [esi + eax*4 + 0xf61944]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
push ebx
push 1
lea eax, [ebp - 0x48]
push 2
push eax
call fcn.00479f37
push dword [ebp - 0x34]
lea eax, [ebp + 0xf0]
push 0x4a8e54
push eax
call fcn.004134f0
add esp, 0x1c
inc dword [ebp - 0x34]
push ebx
lea eax, [ebp + 0xf0]
push 1
push eax
call fcn.00475882
pop ecx
add eax, eax
push eax
lea eax, [ebp + 0xf0]
push eax
call fcn.00479f37
push ebx
push 1
lea eax, [ebp - 0x46]
push 2
push eax
call fcn.00479f37
push ebx
push 1
lea eax, [ebp - 0x50]
push 2
push eax
call fcn.00479f37
mov eax, dword [ebp + 0x10c]
add esp, 0x30
cmp eax, dword [esi + 8]
mov eax, dword [ebp - 0x1c]
jne 0x41dca0
cmp eax, 2
jl 0x41dca0
mov ecx, dword [ebp - 0x30]
cmp byte [eax + ecx], 0
jne 0x41dc97
mov eax, dword [ebp - 0x28]
push ebx
push 1
push dword [eax]
call fcn.00475882
pop ecx
add eax, eax
push eax
mov eax, dword [ebp - 0x28]
push dword [eax]
call fcn.00479f37
add esp, 0x10
inc dword [ebp - 0x14]
add dword [ebp - 0x28], 4
jmp 0x41dcc7
mov ecx, dword [ebp - 0x30]
cmp byte [eax + ecx], 0
jne 0x41dcc7
mov eax, dword [ebp - 0x18]
push ebx
push 1
push dword [eax]
call fcn.00475882
pop ecx
add eax, eax
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
call fcn.00479f37
add esp, 0x10
push ebx
push 1
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.00479f37
movzx eax, word [edi]
add dword [ebp - 0x18], 4
add esp, 0x10
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], eax
jl 0x41dbf7
mov eax, dword [ebp + 0x10c]
cmp eax, dword [esi + 8]
jne 0x41dd0d
mov eax, dword [ebp - 0x40]
movzx ecx, word [edi]
mov eax, dword [eax]
cmp ecx, eax
jge 0x41dd0d
cmp dword [ebp - 0x1c], eax
je 0x41dd0d
sub eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
push ebx
push 1
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.00479f37
mov ebx, dword [ebp - 0x40]
add esp, 0x10
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x3c], 0x18
add dword [ebp - 0x38], 0xd2f00
add dword [ebp - 0x30], 0x34bc0
add edi, 0x30
add ebx, 4
cmp eax, dword [esi + 0x44541fe]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x40], ebx
jl 0x41dab5
mov ebx, dword [ebp + 0x108]
push dword [ebp - 0x24]
call fcn.00478828
pop ecx
lea ecx, [ebx - 0x10]
call fcn.004010ea
xor eax, eax
jmp 0x41ddf3
call fcn.0044bc9f
push eax
lea ecx, [ebp - 0x10]
call fcn.0044be7a
push 0xf01c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00401566
mov esi, dword [ebp - 0x10]
push 0
push 0
push esi
call fcn.004535b7
push dword [ebp - 0x24]
call fcn.00478828
pop ecx
lea ecx, [esi - 0x10]
call fcn.004010ea
xor esi, esi
inc esi
jmp 0x41d9eb
call fcn.0044bc9f
push eax
lea ecx, [ebp - 0x10]
call fcn.0044be7a
push 0xf02f
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401566
mov esi, dword [ebp - 0x10]
push edi
push edi
push esi
call fcn.004535b7
lea ecx, [esi - 0x10]
call fcn.004010ea
lea ecx, [ebx - 0x10]
call fcn.004010ea
mov eax, 0x1000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xfc]
xor ecx, ebp
call fcn.00475cba
add ebp, 0x100
leave
ret 8