Function at 0x40bea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x128
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], 0xe31f6627
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, 0xa3049747
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
jg 0x40bf03
jmp 0x40beed
mov eax, dword [ebp - 0x48]
sub eax, 0x8566f6e7
mov dword [ebp - 0x50], eax
je 0x40c4a0
jmp 0x40c2e0
mov eax, dword [ebp - 0x48]
sub eax, 0x664ad809
mov dword [ebp - 0x54], eax
jg 0x40c2c7
jmp 0x40bf19
mov eax, dword [ebp - 0x48]
sub eax, 0xacb7531d
mov dword [ebp - 0x58], eax
jg 0x40bf45
jmp 0x40bf2f
mov eax, dword [ebp - 0x48]
sub eax, 0xa3049748
mov dword [ebp - 0x5c], eax
je 0x40c580
jmp 0x40c2e0
mov eax, dword [ebp - 0x48]
sub eax, 0x575ab3ad
mov dword [ebp - 0x60], eax
jg 0x40c2ae
jmp 0x40bf5b
mov eax, dword [ebp - 0x48]
sub eax, 0x4dec51da
mov dword [ebp - 0x64], eax
jg 0x40c295
jmp 0x40bf71
mov eax, dword [ebp - 0x48]
sub eax, 0x43ebab65
mov dword [ebp - 0x68], eax
jg 0x40c27c
jmp 0x40bf87
mov eax, dword [ebp - 0x48]
sub eax, 0x42f35590
mov dword [ebp - 0x6c], eax
jg 0x40c263
jmp 0x40bf9d
mov eax, dword [ebp - 0x48]
sub eax, 0x33f76cfb
mov dword [ebp - 0x70], eax
jg 0x40c24a
jmp 0x40bfb3
mov eax, dword [ebp - 0x48]
sub eax, 0x2cebf283
mov dword [ebp - 0x74], eax
jg 0x40c231
jmp 0x40bfc9
mov eax, dword [ebp - 0x48]
sub eax, 0x1958da03
mov dword [ebp - 0x78], eax
jg 0x40c218
jmp 0x40bfdf
mov eax, dword [ebp - 0x48]
sub eax, 0xff3a5cae
mov dword [ebp - 0x7c], eax
jg 0x40c1ff
jmp 0x40bff5
mov eax, dword [ebp - 0x48]
sub eax, 0xfd9d5e77
mov dword [ebp - 0x80], eax
jg 0x40c1e6
jmp 0x40c00b
mov eax, dword [ebp - 0x48]
sub eax, 0xf9fcf0f9
mov dword [ebp - 0x84], eax
jg 0x40c1cd
jmp 0x40c024
mov eax, dword [ebp - 0x48]
sub eax, 0xeea8710e
mov dword [ebp - 0x88], eax
jg 0x40c1b4
jmp 0x40c03d
mov eax, dword [ebp - 0x48]
sub eax, 0xeb28072b
mov dword [ebp - 0x8c], eax
jg 0x40c19b
jmp 0x40c056
mov eax, dword [ebp - 0x48]
sub eax, 0xe31f6626
mov dword [ebp - 0x90], eax
jg 0x40c182
jmp 0x40c06f
mov eax, dword [ebp - 0x48]
sub eax, 0xdecc53c9
mov dword [ebp - 0x94], eax
jg 0x40c169
jmp 0x40c088
mov eax, dword [ebp - 0x48]
sub eax, 0xde6450a6
mov dword [ebp - 0x98], eax
jg 0x40c150
jmp 0x40c0a1
mov eax, dword [ebp - 0x48]
sub eax, 0xda496527
mov dword [ebp - 0x9c], eax
jg 0x40c137
jmp 0x40c0ba
mov eax, dword [ebp - 0x48]
sub eax, 0xc8869bf0
mov dword [ebp - 0xa0], eax
jg 0x40c11e
jmp 0x40c0d3
mov eax, dword [ebp - 0x48]
sub eax, 0xacb7531e
mov dword [ebp - 0xa4], eax
je 0x40c5b8
jmp 0x40c0ec
mov eax, dword [ebp - 0x48]
sub eax, 0xad030e77
mov dword [ebp - 0xa8], eax
je 0x40c4bb
jmp 0x40c105
mov eax, dword [ebp - 0x48]
sub eax, 0xc4f9505e
mov dword [ebp - 0xac], eax
je 0x40c474
jmp 0x40c2e0
mov eax, dword [ebp - 0x48]
sub eax, 0xc8869bf1
mov dword [ebp - 0xb0], eax
je 0x40c43a
jmp 0x40c2e0
mov eax, dword [ebp - 0x48]
sub eax, 0xda496528
mov dword [ebp - 0xb4], eax
je 0x40c413
jmp 0x40c2e0
mov eax, dword [ebp - 0x48]
sub eax, 0xde6450a7
mov dword [ebp - 0xb8], eax
je 0x40c523
jmp 0x40c2e0
mov eax, dword [ebp - 0x48]
sub eax, 0xdecc53ca
mov dword [ebp - 0xbc], eax
je 0x40c481
jmp 0x40c2e0
mov eax, dword [ebp - 0x48]
sub eax, 0xe31f6627
mov dword [ebp - 0xc0], eax
je 0x40c2e5
jmp 0x40c2e0
mov eax, dword [ebp - 0x48]
sub eax, 0xeb28072c
mov dword [ebp - 0xc4], eax
je 0x40c55d
jmp 0x40c2e0
mov eax, dword [ebp - 0x48]
sub eax, 0xeea8710f
mov dword [ebp - 0xc8], eax
je 0x40c42e
jmp 0x40c2e0
mov eax, dword [ebp - 0x48]
sub eax, 0xf9fcf0fa
mov dword [ebp - 0xcc], eax
je 0x40c599
jmp 0x40c2e0
mov eax, dword [ebp - 0x48]
sub eax, 0xfd9d5e78
mov dword [ebp - 0xd0], eax
je 0x40c5f8
jmp 0x40c2e0
mov eax, dword [ebp - 0x48]
sub eax, 0xff3a5caf
mov dword [ebp - 0xd4], eax
je 0x40c741
jmp 0x40c2e0
mov eax, dword [ebp - 0x48]
sub eax, 0x1958da04
mov dword [ebp - 0xd8], eax
je 0x40c517
jmp 0x40c2e0
mov eax, dword [ebp - 0x48]
sub eax, 0x2cebf284
mov dword [ebp - 0xdc], eax
je 0x40c5d3
jmp 0x40c2e0
mov eax, dword [ebp - 0x48]
sub eax, 0x33f76cfc
mov dword [ebp - 0xe0], eax
je 0x40c2f2
jmp 0x40c2e0
mov eax, dword [ebp - 0x48]
sub eax, 0x42f35591
mov dword [ebp - 0xe4], eax
je 0x40c76b
jmp 0x40c2e0
mov eax, dword [ebp - 0x48]
sub eax, 0x43ebab66
mov dword [ebp - 0xe8], eax
je 0x40c58c
jmp 0x40c2e0
mov eax, dword [ebp - 0x48]
sub eax, 0x4dec51db
mov dword [ebp - 0xec], eax
je 0x40c605
jmp 0x40c2e0
mov eax, dword [ebp - 0x48]
sub eax, 0x575ab3ae
mov dword [ebp - 0xf0], eax
je 0x40c756
jmp 0x40c2e0
mov eax, dword [ebp - 0x48]
sub eax, 0x664ad80a
mov dword [ebp - 0xf4], eax
je 0x40c56a
jmp 0x40c2e0
jmp 0x40c77b
mov eax, 0x33f76cfc
mov dword [ebp - 0x30], eax
jmp 0x40c77b
lea eax, [0x481550]
mov ecx, 4
mov dword [ebp - 0xf8], eax
mov eax, ecx
mov dword [ebp - 0xfc], ecx
call fcn.0042a300
mov eax, esp
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xfc]
call fcn.0042a300
mov eax, esp
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xfc]
call fcn.0042a300
mov eax, esp
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xfc]
call fcn.0042a300
mov eax, esp
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xfc]
call fcn.0042a300
mov eax, esp
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0x100], eax
mov eax, ecx
call fcn.0042a300
mov eax, esp
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xfc]
call fcn.0042a300
mov eax, esp
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xfc]
call fcn.0042a300
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.0042ad99
add esp, 8
mov ecx, 0xda496528
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 - 0xf], al
mov dword [ebp - 0x30], ecx
jmp 0x40c77b
mov eax, 0xc8869bf1
mov ecx, 0xeea8710f
mov dl, byte [ebp - 0xf]
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x30], eax
jmp 0x40c77b
mov dword [ebp - 0x30], 0x43ebab66
jmp 0x40c77b
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.00406060
add esp, 0x10
mov dword [ebp - 0x30], 0xc4f9505e
jmp 0x40c77b
mov eax, 0xdecc53ca
mov dword [ebp - 0x30], eax
jmp 0x40c77b
mov eax, 0x8566f6e7
mov ecx, dword [ebp - 0x24]
cmp dword [ecx], 0
setne dl
and dl, 1
mov byte [ebp - 0xe], dl
mov dword [ebp - 0x30], eax
jmp 0x40c77b
mov eax, 0xeb28072c
mov ecx, 0xad030e77
mov dl, byte [ebp - 0xe]
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x30], eax
jmp 0x40c77b
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.0042af05
add esp, 0x10
mov ecx, 0xde6450a7
mov edx, 0x1958da04
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 0x40c77b
mov dword [ebp - 0x30], 0x43ebab66
jmp 0x40c77b
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]
add ecx, 0x1166bf8c
sub ecx, eax
sub ecx, 0x1166bf8c
mov eax, dword [ebp - 0x24]
mov dword [eax], ecx
mov dword [ebp - 0x30], 0xc4f9505e
jmp 0x40c77b
mov eax, 0x664ad80a
mov dword [ebp - 0x30], eax
jmp 0x40c77b
mov eax, 0xa3049748
mov ecx, dword [ebp - 0x14]
mov dword [ecx], 0
mov dword [ebp - 0x30], eax
jmp 0x40c77b
mov dword [ebp - 0x30], 0x43ebab66
jmp 0x40c77b
mov eax, 0xf9fcf0fa
mov dword [ebp - 0x30], eax
jmp 0x40c77b
mov eax, 0xacb7531e
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0
setne dl
and dl, 1
mov byte [ebp - 0xd], dl
mov dword [ebp - 0x30], eax
jmp 0x40c77b
mov eax, 0xfd9d5e78
mov ecx, 0x2cebf284
mov dl, byte [ebp - 0xd]
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x30], eax
jmp 0x40c77b
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
sub esp, 4
mov dword [esp], eax
call fcn.0042afef
add esp, 4
mov dword [ebp - 0x30], 0xfd9d5e78
mov dword [ebp - 0x108], eax
jmp 0x40c77b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [0x481550]
mov ecx, 4
mov dword [ebp - 0x10c], eax
mov eax, ecx
mov dword [ebp - 0x110], ecx
call fcn.0042a300
mov eax, esp
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x114], eax
mov eax, ecx
call fcn.0042a300
mov eax, esp
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x118], eax
mov eax, ecx
call fcn.0042a300
mov eax, esp
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x11c], eax
mov eax, ecx
call fcn.0042a300
mov eax, esp
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x120], eax
mov eax, ecx
call fcn.0042a300
mov eax, esp
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x124], eax
mov eax, ecx
call fcn.0042a300
mov eax, esp
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x128], eax
mov eax, ecx
call fcn.0042a300
mov eax, esp
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x12c], eax
mov eax, ecx
call fcn.0042a300
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.0042ad99
add esp, 8
mov ecx, dword [ebp - 0x128]
mov dword [ecx], eax
mov dword [ebp - 0x30], 0x33f76cfc
jmp 0x40c77b
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], 0xdecc53ca
mov dword [ebp - 0x130], eax
jmp 0x40c77b
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
mov dword [ebp - 0x30], 0x664ad80a
jmp 0x40c77b
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], 0xf9fcf0fa
mov dword [ebp - 0x134], eax
jmp 0x40bed1