Function at 0x40d870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], 0x7572a8fb
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], edi
mov eax, dword [ebp - 0x30]
mov ecx, eax
sub ecx, 0x7b9c9ead
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
jg 0x40dc97
jmp 0x40d8bd
mov eax, dword [ebp - 0x48]
sub eax, 0x7572a8fa
mov dword [ebp - 0x50], eax
jg 0x40dc7e
jmp 0x40d8d3
mov eax, dword [ebp - 0x48]
sub eax, 0x6d1c90a5
mov dword [ebp - 0x54], eax
jg 0x40dc65
jmp 0x40d8e9
mov eax, dword [ebp - 0x48]
sub eax, 0x681b6622
mov dword [ebp - 0x58], eax
jg 0x40dc4c
jmp 0x40d8ff
mov eax, dword [ebp - 0x48]
sub eax, 0x8c9375d1
mov dword [ebp - 0x5c], eax
jg 0x40d92b
jmp 0x40d915
mov eax, dword [ebp - 0x48]
sub eax, 0x880fa125
mov dword [ebp - 0x60], eax
je 0x40df88
jmp 0x40dcb0
mov eax, dword [ebp - 0x48]
sub eax, 0xb9fe979c
mov dword [ebp - 0x64], eax
jg 0x40d957
jmp 0x40d941
mov eax, dword [ebp - 0x48]
sub eax, 0x8c9375d2
mov dword [ebp - 0x68], eax
je 0x40ddfe
jmp 0x40dcb0
mov eax, dword [ebp - 0x48]
sub eax, 0xcb1ab1ed
mov dword [ebp - 0x6c], eax
jg 0x40d983
jmp 0x40d96d
mov eax, dword [ebp - 0x48]
sub eax, 0xb9fe979d
mov dword [ebp - 0x70], eax
je 0x40df0d
jmp 0x40dcb0
mov eax, dword [ebp - 0x48]
sub eax, 0xdc450f44
mov dword [ebp - 0x74], eax
jg 0x40d9af
jmp 0x40d999
mov eax, dword [ebp - 0x48]
sub eax, 0xcb1ab1ee
mov dword [ebp - 0x78], eax
je 0x40dfad
jmp 0x40dcb0
mov eax, dword [ebp - 0x48]
sub eax, 0xe197afac
mov dword [ebp - 0x7c], eax
jg 0x40d9db
jmp 0x40d9c5
mov eax, dword [ebp - 0x48]
sub eax, 0xdc450f45
mov dword [ebp - 0x80], eax
je 0x40de6b
jmp 0x40dcb0
mov eax, dword [ebp - 0x48]
sub eax, 0xe65a89e9
mov dword [ebp - 0x84], eax
jg 0x40da0d
jmp 0x40d9f4
mov eax, dword [ebp - 0x48]
sub eax, 0xe197afad
mov dword [ebp - 0x88], eax
je 0x40de8a
jmp 0x40dcb0
mov eax, dword [ebp - 0x48]
sub eax, 0xe914ba90
mov dword [ebp - 0x8c], eax
jg 0x40da3f
jmp 0x40da26
mov eax, dword [ebp - 0x48]
sub eax, 0xe65a89ea
mov dword [ebp - 0x90], eax
je 0x40dfba
jmp 0x40dcb0
mov eax, dword [ebp - 0x48]
sub eax, 0x5a9c6a6b
mov dword [ebp - 0x94], eax
jg 0x40dc33
jmp 0x40da58
mov eax, dword [ebp - 0x48]
sub eax, 0x590d23e8
mov dword [ebp - 0x98], eax
jg 0x40dc1a
jmp 0x40da71
mov eax, dword [ebp - 0x48]
sub eax, 0x4ad12d1b
mov dword [ebp - 0x9c], eax
jg 0x40dc01
jmp 0x40da8a
mov eax, dword [ebp - 0x48]
sub eax, 0x2bc811fa
mov dword [ebp - 0xa0], eax
jg 0x40dbe8
jmp 0x40daa3
mov eax, dword [ebp - 0x48]
sub eax, 0x154d2ae9
mov dword [ebp - 0xa4], eax
jg 0x40dbcf
jmp 0x40dabc
mov eax, dword [ebp - 0x48]
sub eax, 0x12f76b20
mov dword [ebp - 0xa8], eax
jg 0x40dbb6
jmp 0x40dad5
mov eax, dword [ebp - 0x48]
sub eax, 0x1b4be56
mov dword [ebp - 0xac], eax
jg 0x40db9d
jmp 0x40daee
mov eax, dword [ebp - 0x48]
sub eax, 0xe237a5
mov dword [ebp - 0xb0], eax
jg 0x40db84
jmp 0x40db07
mov eax, dword [ebp - 0x48]
sub eax, 0xf9c3ca99
mov dword [ebp - 0xb4], eax
jg 0x40db6b
jmp 0x40db20
mov eax, dword [ebp - 0x48]
sub eax, 0xe914ba91
mov dword [ebp - 0xb8], eax
je 0x40de18
jmp 0x40db39
mov eax, dword [ebp - 0x48]
sub eax, 0xe9dfee59
mov dword [ebp - 0xbc], eax
je 0x40e0f6
jmp 0x40db52
mov eax, dword [ebp - 0x48]
sub eax, 0xf4308c22
mov dword [ebp - 0xc0], eax
je 0x40df3b
jmp 0x40dcb0
mov eax, dword [ebp - 0x48]
sub eax, 0xf9c3ca9a
mov dword [ebp - 0xc4], eax
je 0x40df5e
jmp 0x40dcb0
mov eax, dword [ebp - 0x48]
sub eax, 0xe237a6
mov dword [ebp - 0xc8], eax
je 0x40dde3
jmp 0x40dcb0
mov eax, dword [ebp - 0x48]
sub eax, 0x1b4be57
mov dword [ebp - 0xcc], eax
je 0x40e117
jmp 0x40dcb0
mov eax, dword [ebp - 0x48]
sub eax, 0x12f76b21
mov dword [ebp - 0xd0], eax
je 0x40e102
jmp 0x40dcb0
mov eax, dword [ebp - 0x48]
sub eax, 0x154d2aea
mov dword [ebp - 0xd4], eax
je 0x40dcc2
jmp 0x40dcb0
mov eax, dword [ebp - 0x48]
sub eax, 0x2bc811fb
mov dword [ebp - 0xd8], eax
je 0x40de0b
jmp 0x40dcb0
mov eax, dword [ebp - 0x48]
sub eax, 0x4ad12d1c
mov dword [ebp - 0xdc], eax
je 0x40df6a
jmp 0x40dcb0
mov eax, dword [ebp - 0x48]
sub eax, 0x590d23e9
mov dword [ebp - 0xe0], eax
je 0x40de24
jmp 0x40dcb0
mov eax, dword [ebp - 0x48]
sub eax, 0x5a9c6a6c
mov dword [ebp - 0xe4], eax
je 0x40de5e
jmp 0x40dcb0
mov eax, dword [ebp - 0x48]
sub eax, 0x681b6623
mov dword [ebp - 0xe8], eax
je 0x40dea5
jmp 0x40dcb0
mov eax, dword [ebp - 0x48]
sub eax, 0x6d1c90a6
mov dword [ebp - 0xec], eax
je 0x40df01
jmp 0x40dcb0
mov eax, dword [ebp - 0x48]
sub eax, 0x7572a8fb
mov dword [ebp - 0xf0], eax
je 0x40dcb5
jmp 0x40dcb0
mov eax, dword [ebp - 0x48]
sub eax, 0x7b9c9eae
mov dword [ebp - 0xf4], eax
je 0x40df48
jmp 0x40dcb0
jmp 0x40e127
mov eax, 0x154d2aea
mov dword [ebp - 0x30], eax
jmp 0x40e127
lea eax, [0x484550]
mov ecx, 4
mov dword [ebp - 0xf8], eax
mov eax, ecx
mov dword [ebp - 0xfc], ecx
call fcn.0042e4a0
mov eax, esp
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xfc]
call fcn.0042e4a0
mov eax, esp
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xfc]
call fcn.0042e4a0
mov eax, esp
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xfc]
call fcn.0042e4a0
mov eax, esp
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xfc]
call fcn.0042e4a0
mov eax, esp
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0x100], eax
mov eax, ecx
call fcn.0042e4a0
mov eax, esp
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xfc]
call fcn.0042e4a0
mov eax, esp
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xfc]
call fcn.0042e4a0
mov eax, esp
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x38]
mov dword [eax], edx
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x3c]
mov dword [eax], esi
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x40]
mov dword [eax], edi
mov eax, dword [ebp - 0x100]
mov ebx, dword [ebp - 0x44]
mov dword [eax], ebx
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
mov eax, dword [ebp - 0x14]
mov dword [eax], 0xffffffff
mov eax, dword [ebp - 0x100]
mov eax, dword [eax]
sub esp, 8
mov dword [esp], eax
mov eax, dword [ebp - 0xf8]
mov dword [esp + 4], eax
call fcn.0042ef39
add esp, 8
mov ecx, 0xe237a6
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
sete al
and al, 1
mov byte [ebp - 0xe], al
mov dword [ebp - 0x30], ecx
jmp 0x40e127
mov eax, 0x590d23e9
mov ecx, 0x8c9375d2
mov dl, byte [ebp - 0xe]
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x30], eax
jmp 0x40e127
mov eax, 0x2bc811fb
mov dword [ebp - 0x30], eax
jmp 0x40e127
mov eax, 0xe914ba91
mov dword [ebp - 0x30], eax
jmp 0x40e127
mov dword [ebp - 0x30], 0x4ad12d1c
jmp 0x40e127
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx]
mov esi, dword [ebp - 0x20]
mov esi, dword [esi]
sub esp, 0x10
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.00406720
add esp, 0x10
mov dword [ebp - 0x30], 0x5a9c6a6c
jmp 0x40e127
mov eax, 0xdc450f45
mov dword [ebp - 0x30], eax
jmp 0x40e127
mov eax, 0xe197afad
mov ecx, dword [ebp - 0x24]
cmp dword [ecx], 0
setne dl
and dl, 1
mov byte [ebp - 0xd], dl
mov dword [ebp - 0x30], eax
jmp 0x40e127
mov eax, 0xf4308c22
mov ecx, 0x681b6623
mov dl, byte [ebp - 0xd]
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x30], eax
jmp 0x40e127
mov eax, 1
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx]
mov esi, dword [ebp - 0x20]
mov esi, dword [esi]
sub esp, 0x10
mov dword [esp], esi
mov dword [esp + 4], 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [ebp - 0x104], eax
call fcn.0042f0a5
add esp, 0x10
mov ecx, 0xb9fe979d
mov edx, 0x6d1c90a6
mov esi, dword [ebp - 0x18]
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov esi, dword [ebp - 0x24]
cmp eax, dword [esi]
cmovne ecx, edx
mov dword [ebp - 0x30], ecx
jmp 0x40e127
mov dword [ebp - 0x30], 0x4ad12d1c
jmp 0x40e127
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
add ecx, eax
mov eax, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
sub ecx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax], ecx
mov dword [ebp - 0x30], 0x5a9c6a6c
jmp 0x40e127
mov eax, 0x7b9c9eae
mov dword [ebp - 0x30], eax
jmp 0x40e127
mov eax, 0xf9c3ca9a
mov ecx, dword [ebp - 0x14]
mov dword [ecx], 0
mov dword [ebp - 0x30], eax
jmp 0x40e127
mov dword [ebp - 0x30], 0x4ad12d1c
jmp 0x40e127
mov eax, 0xcb1ab1ee
mov ecx, 0x880fa125
mov edx, dword [ebp - 0x1c]
cmp dword [edx], 0
cmovne eax, ecx
mov dword [ebp - 0x30], eax
jmp 0x40e127
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
sub esp, 4
mov dword [esp], eax
call fcn.0042f18f
add esp, 4
mov dword [ebp - 0x30], 0xcb1ab1ee
mov dword [ebp - 0x108], eax
jmp 0x40e127
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [0x484550]
mov ecx, 4
mov dword [ebp - 0x10c], eax
mov eax, ecx
mov dword [ebp - 0x110], ecx
call fcn.0042e4a0
mov eax, esp
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x114], eax
mov eax, ecx
call fcn.0042e4a0
mov eax, esp
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x118], eax
mov eax, ecx
call fcn.0042e4a0
mov eax, esp
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x11c], eax
mov eax, ecx
call fcn.0042e4a0
mov eax, esp
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x120], eax
mov eax, ecx
call fcn.0042e4a0
mov eax, esp
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x124], eax
mov eax, ecx
call fcn.0042e4a0
mov eax, esp
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x128], eax
mov eax, ecx
call fcn.0042e4a0
mov eax, esp
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x12c], eax
mov eax, ecx
call fcn.0042e4a0
mov eax, esp
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x34]
mov dword [ecx], edx
mov esi, dword [ebp - 0x118]
mov edi, dword [ebp - 0x38]
mov dword [esi], edi
mov ebx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x3c]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x40]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0x44]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x128]
mov dword [ecx], 0
mov ecx, dword [ebp - 0x12c]
mov dword [ecx], 0
mov dword [eax], 0xffffffff
mov eax, dword [ebp - 0x124]
mov eax, dword [eax]
sub esp, 8
mov dword [esp], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 4], eax
call fcn.0042ef39
add esp, 8
mov ecx, dword [ebp - 0x128]
mov dword [ecx], eax
mov dword [ebp - 0x30], 0x154d2aea
jmp 0x40e127
mov dword [ebp - 0x30], 0x2bc811fb
jmp 0x40e127
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], 0xdc450f45
mov dword [ebp - 0x130], eax
jmp 0x40e127
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
mov dword [ebp - 0x30], 0x7b9c9eae
jmp 0x40d8a1