Function at 0x486e70
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3c]
push edi
mov eax, dword [esi + 0x1680c]
test eax, eax
mov eax, dword [esi + 0x16804]
je 0x486ebc
mov ecx, dword [esi + 0x16800]
mov dword [esi + 0x16804], 0
add ecx, eax
pop edi
mov dword [esi + 0x16800], ecx
mov ecx, dword [esi + 0x15ff4]
mov dword [esi + 0x15ff8], ecx
pop esi
pop ebp
mov eax, 0x32
pop ebx
add esp, 0x2c
ret
test eax, eax
je 0x48789c
cdq
mov ebp, eax
mov eax, dword [esi + 0x4c]
mov ebx, edx
mov dword [esp + 0x24], ebp
test eax, eax
mov dword [esp + 0x28], ebx
jne 0x486f25
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x486f25
mov ebx, dword [esi + 0x3d40]
mov eax, dword [esi + 0x3d44]
mov ecx, dword [esi + 0x455c]
mov edx, dword [esi + 0x4558]
mov edi, ebx
add edi, ebp
adc eax, dword [esp + 0x28]
cmp eax, ecx
jl 0x486f21
jg 0x486f09
cmp edi, edx
jbe 0x486f21
mov eax, dword [esi + 0x3d44]
sub edx, ebx
sbb ecx, eax
mov ebp, edx
mov ebx, ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
jmp 0x486f25
mov ebx, dword [esp + 0x28]
test ebx, ebx
jg 0x486f70
jl 0x486f2f
test ebp, ebp
ja 0x486f70
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x486f48
mov dword [esi], 1
mov dword [esi + 0x24], 1
jmp 0x487713
mov eax, dword [esi + 0x54]
mov dword [esi], 1
test eax, eax
je 0x486f61
mov dword [esi + 0x24], 1
jmp 0x487713
mov dword [esi + 0x1680c], 2
jmp 0x487713
mov edx, dword [esi + 0x15ff4]
push esi
push ebp
push edx
call fcn.00487fc0
mov eax, dword [esi + 0x3d30]
add esp, 0xc
test eax, eax
jne 0x4870e6
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x4870f1
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x4870e6
cmp dword [esi + 0x45c8], 0x4000
jne 0x487073
mov edi, dword [esi + 0x15ffc]
mov dword [esp + 0x2c], ebp
mov ebp, ebx
xor ebx, ebx
mov byte [esp + 0x40], 0xd
mov byte [esp + 0x41], 0xa
test ebx, ebx
jne 0x487713
cmp byte [edi], 0xa
jne 0x48701f
mov ecx, dword [esi + 0x90]
mov edx, dword [esi + 0x16808]
add ecx, 1
push ebx
mov dword [esi + 0x90], ecx
mov eax, dword [esi + 0x94]
adc eax, ebx
lea ecx, [esp + 0x44]
mov dword [esi + 0x94], eax
lea eax, [esp + 0x18]
push eax
push 2
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x487042
mov eax, dword [esp + 0x14]
test eax, eax
ja 0x487047
jmp 0x487042
mov ecx, dword [esi + 0x16808]
lea eax, [esp + 0x14]
push 0
push eax
push 1
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x487042
mov eax, dword [esp + 0x14]
test eax, eax
ja 0x487047
mov ebx, 1
mov edx, dword [esp + 0x2c]
inc edi
add edx, 0xffffffff
adc ebp, 0xffffffff
mov dword [esp + 0x2c], edx
test ebp, ebp
jg 0x486fcd
jl 0x487713
mov eax, edx
test eax, eax
ja 0x486fcd
jmp 0x487713
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, 0x14
mov dword [esp + 0x14], 0
test edi, edi
jle 0x4870c1
mov eax, dword [esi + 0x15ffc]
mov ecx, dword [esi + 0x16808]
lea edx, [esp + 0x14]
push 0
push edx
push ebp
push eax
push ecx
call ebx
test eax, eax
mov eax, dword [esp + 0x14]
je 0x4870b6
cmp eax, ebp
je 0x487713
mov ebp, dword [esp + 0x24]
test eax, eax
jne 0x4870bd
dec edi
jmp 0x487086
xor edi, edi
jmp 0x487086
mov eax, dword [esi + 0x3d24]
test eax, eax
jne 0x487713
mov dword [esi + 0x1680c], 2
pop edi
pop esi
pop ebp
mov eax, 0x32
pop ebx
add esp, 0x2c
ret
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x48733c
mov eax, dword [esi + 0x50]
test eax, eax
jne 0x48733c
mov edx, dword [esi + 0x15ffc]
mov eax, dword [esi + 0x88]
mov edi, dword [esi + 0x4558]
mov ecx, dword [esi + 0x94]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x80]
mov ebp, dword [esi + 0x455c]
add edx, eax
mov eax, dword [esi + 0x90]
mov ebx, eax
add ebx, edi
mov edi, ecx
adc edi, ebp
mov ebp, dword [esi + 0x74]
cmp edi, ebp
jg 0x487164
jl 0x487142
cmp ebx, dword [esi + 0x70]
jae 0x487164
mov edi, dword [esi + 0x78]
mov ebp, dword [esi + 0x7c]
mov ebx, dword [esi + 0x4558]
sub eax, edi
mov edi, dword [esi + 0x455c]
sbb ecx, ebp
add eax, ebx
adc ecx, edi
mov dword [esp + 0x2c], eax
mov ebx, ecx
jmp 0x48716d
mov eax, dword [esi + 0x70]
mov ebx, ebp
mov dword [esp + 0x2c], eax
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x30], ebx
mov ecx, dword [esi + 0x9c]
mov eax, dword [esi + 0x98]
cmp ecx, dword [esi + 0x7c]
jl 0x4872a4
jg 0x487199
cmp eax, dword [esi + 0x78]
jb 0x4872a4
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x88]
cmp eax, dword [esi + 0x74]
jg 0x487321
jl 0x4871b9
cmp ecx, dword [esi + 0x70]
jae 0x487321
cmp dword [esi + 0x45c8], 0x4000
jne 0x487292
cmp eax, ebx
jg 0x487306
mov eax, dword [esp + 0x2c]
jl 0x4871df
cmp ecx, eax
jae 0x487306
cmp byte [edi], 0xa
jne 0x487240
mov byte [edx], 0xd
mov ecx, dword [esi + 0x74]
inc edx
cmp ebx, ecx
jg 0x487222
jl 0x4871f6
cmp eax, dword [esi + 0x70]
jae 0x487222
mov ecx, dword [esi + 0x90]
add ecx, 1
mov dword [esi + 0x90], ecx
mov ecx, dword [esi + 0x94]
adc ecx, 0
add eax, 1
adc ebx, 0
mov dword [esi + 0x94], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov ecx, dword [esi + 0x88]
add ecx, 1
mov dword [esi + 0x88], ecx
mov ecx, dword [esi + 0x8c]
adc ecx, 0
mov dword [esi + 0x8c], ecx
mov ecx, dword [esi + 0x8c]
cmp ecx, ebx
jg 0x487306
jl 0x48725e
mov ecx, dword [esi + 0x88]
cmp ecx, eax
jae 0x487306
mov al, byte [edi]
mov byte [edx], al
mov ecx, dword [esi + 0x88]
inc edx
inc edi
add ecx, 1
mov dword [esi + 0x88], ecx
mov eax, dword [esi + 0x8c]
adc eax, 0
add ebp, 0xffffffff
mov dword [esi + 0x8c], eax
mov eax, dword [esp + 0x28]
adc eax, 0xffffffff
mov dword [esp + 0x28], eax
jmp 0x4872e7
cmp eax, ebx
jg 0x487306
jl 0x48729e
cmp ecx, dword [esp + 0x2c]
jae 0x487306
mov cl, byte [edi]
mov byte [edx], cl
jmp 0x487262
add eax, 1
adc ecx, 0
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], ecx
mov ebx, dword [esi + 0x9c]
mov ecx, dword [esi + 0x45e2]
xor eax, eax
cmp ebx, eax
jg 0x487306
jl 0x4872d4
mov eax, dword [esi + 0x98]
cmp eax, ecx
jae 0x487306
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
add ebp, 0xffffffff
adc ecx, 0xffffffff
inc edi
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x28]
test eax, eax
jg 0x487179
jl 0x4872fd
test ebp, ebp
ja 0x487179
mov dword [esp + 0x24], ebp
jmp 0x487713
mov dword [esi + 0x1680c], 3
pop edi
mov dword [esp + 0x20], ebp
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x2c
ret
mov dword [esi + 0x1680c], 2
pop edi
mov dword [esp + 0x20], ebp
pop esi
pop ebp
mov eax, 0x32
pop ebx
add esp, 0x2c
ret
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x487352
mov eax, dword [esi + 0x50]
test eax, eax
je 0x487713
mov ebp, dword [esp + 0x24]
mov eax, dword [esi + 0x45c8]
mov dword [esp + 0x1c], 3
cmp eax, 0x4000
mov edi, ebp
jne 0x4873e4
lea ecx, [ebp + ebp]
push ecx
call fcn.005c0a37
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x40], edx
je 0x4873cd
xor ecx, ecx
test ebp, ebp
jle 0x4873c7
mov ebx, dword [esi + 0x15ffc]
cmp byte [ecx + ebx], 0xa
jne 0x4873b5
mov byte [eax], 0xd
mov ebx, dword [esi + 0x90]
inc eax
add ebx, 1
mov dword [esi + 0x90], ebx
mov ebx, dword [esi + 0x94]
adc ebx, 0
inc edi
mov dword [esi + 0x94], ebx
mov ebx, dword [esi + 0x15ffc]
inc eax
mov bl, byte [ecx + ebx]
inc ecx
mov byte [eax - 1], bl
cmp ecx, ebp
jl 0x487386
mov dword [esp + 0x10], edx
jmp 0x4873f6
mov dword [esi + 0x1680c], 2
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x2c
ret
mov edx, dword [esi + 0x15ffc]
mov dword [esp + 0x40], 0
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x50]
test eax, eax
je 0x48765f
mov eax, dword [esi + 0x90]
mov edx, dword [esi + 0x4558]
mov ecx, dword [esi + 0x94]
mov ebp, dword [esi + 0x455c]
mov ebx, eax
add ebx, edx
mov edx, ecx
adc edx, ebp
mov ebp, dword [esi + 0x74]
cmp edx, ebp
jg 0x487453
jl 0x48742f
cmp ebx, dword [esi + 0x70]
jae 0x487453
mov edx, dword [esi + 0x78]
mov ebp, dword [esi + 0x7c]
mov ebx, dword [esi + 0x4558]
sub eax, edx
mov edx, dword [esi + 0x455c]
sbb ecx, ebp
add eax, ebx
adc ecx, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
jmp 0x48745e
mov eax, dword [esi + 0x70]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], eax
mov ecx, dword [esi + 0x68]
mov ebx, dword [esi + 0x6c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x34], ecx
test edi, edi
jbe case.0x4876e3.0
mov eax, dword [esi + 0x9c]
mov edx, dword [esi + 0x7c]
mov ecx, dword [esi + 0x98]
cmp eax, edx
jl 0x487588
jg 0x48749a
cmp ecx, dword [esi + 0x78]
jb 0x487588
mov ebp, dword [esi + 0x8c]
mov eax, dword [esi + 0x74]
mov edx, dword [esi + 0x88]
cmp ebp, eax
jg 0x4875ee
jl 0x4874bc
cmp edx, dword [esi + 0x70]
jae 0x4875ee
mov ecx, edi
xor eax, eax
add ecx, edx
mov edx, dword [esp + 0x30]
adc eax, ebp
cmp eax, edx
jl 0x4874e8
jg 0x4874d4
cmp ecx, dword [esp + 0x2c]
jbe 0x4874e8
mov edi, dword [esp + 0x2c]
mov eax, dword [esi + 0x88]
sub edi, eax
mov dword [esp + 0x1c], 0
mov eax, dword [esi + 0x4584]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x38]
mov ecx, ebx
push eax
mov eax, dword [esi + 0x60]
push ebx
sar ecx, 0x1f
push edx
mov edx, dword [esi + 0x64]
mov ecx, 0x20
mov dword [esp + 0x28], edi
call fcn.005c0d30
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esi + 0x60]
lea ecx, [esp + 0x2c]
push eax
push ecx
push edx
push 1
call dword [esi + 0x4580]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esi + 0x88]
mov eax, ecx
cdq
add ebp, eax
mov dword [esi + 0x88], ebp
mov ebp, dword [esi + 0x8c]
adc ebp, edx
cmp ecx, edi
mov dword [esi + 0x8c], ebp
jae 0x48756c
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
add eax, ecx
sub edi, ecx
add edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], edx
adc ebx, 0
jmp 0x487574
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x1c]
mov ecx, 3
cmp eax, ecx
ja case.0x487581.2
jmp dword [eax*4 + 0x4878a8]
add ecx, 1
adc eax, 0
mov dword [esi + 0x98], ecx
mov ecx, dword [esi + 0x45e2]
mov dword [esi + 0x9c], eax
mov edx, dword [esi + 0x9c]
xor eax, eax
cmp edx, eax
jg 0x487623
jl 0x4875b8
mov eax, dword [esi + 0x98]
cmp eax, ecx
jae 0x487623
mov eax, dword [esp + 0x10]
dec edi
inc eax
mov dword [esp + 0x10], eax
jmp 0x487470
mov eax, dword [esp + 0x20]
test eax, eax
jne case.0x4876e3.0
jmp 0x487470
mov dword [esi + 0x1680c], ecx
jmp 0x48762d
mov dword [esi + 0x1680c], ecx
mov dword [esi], 1
jmp 0x48762d
mov eax, dword [esi + 0x45c8]
mov dword [esi + 0x1680c], 2
cmp eax, 0x4000
jne 0x487616
mov eax, dword [esp + 0x40]
test eax, eax
je 0x487616
push eax
call fcn.005c0ac9
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x32
pop ebx
add esp, 0x2c
ret
mov dword [esi + 0x1680c], 3
cmp dword [esi + 0x45c8], 0x4000
jne 0x487827
mov eax, dword [esp + 0x40]
test eax, eax
je 0x487827
push eax
call fcn.005c0ac9
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov ebp, dword [esi + 0x68]
mov ebx, dword [esi + 0x6c]
mov dword [esp + 0x20], 0
test edi, edi
jbe case.0x4876e3.0
mov edx, dword [esi + 0x4584]
lea ecx, [esp + 0x1c]
mov eax, ebx
push ecx
push edx
mov edx, dword [esi + 0x64]
sar eax, 0x1f
mov eax, dword [esi + 0x60]
push ebx
push ebp
mov ecx, 0x20
mov dword [esp + 0x28], edi
call fcn.005c0d30
mov ecx, dword [esi + 0x60]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
push 1
call dword [esi + 0x4580]
mov eax, dword [esp + 0x18]
cmp eax, edi
jae 0x4876ce
mov ecx, dword [esp + 0x10]
sub edi, eax
add ecx, eax
add ebp, eax
mov dword [esp + 0x10], ecx
adc ebx, 0
jmp 0x4876d6
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x1c]
cmp eax, 3
ja case.default.0x4876e3
jmp dword [eax*4 + 0x4878b8]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x48766d
cmp dword [esi + 0x45c8], 0x4000
jne 0x487713
mov eax, dword [esp + 0x40]
test eax, eax
je 0x487713
push eax
call fcn.005c0ac9
add esp, 4
mov ecx, dword [esi + 0x16804]
mov edx, dword [esi + 0x16800]
mov eax, dword [esi + 0x4c]
add edx, ecx
mov dword [esi + 0x16800], edx
mov edx, dword [esi + 0x15ff4]
test eax, eax
mov dword [esi + 0x16804], 0
mov dword [esi + 0x15ff8], edx
jne 0x48775a
mov eax, dword [esi + 0x54]
test eax, eax
je 0x48786a
mov eax, dword [esi + 0x50]
test eax, eax
je 0x487834
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x8c]
mov dword [esi + 0x68], eax
mov dword [esi + 0x3d40], eax
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x3d44], ecx
jmp 0x487886
mov eax, dword [esi + 0x45c8]
mov dword [esi + 0x1680c], 3
cmp eax, 0x4000
jne 0x487827
mov eax, dword [esp + 0x40]
test eax, eax
je 0x487827
mov ecx, eax
push ecx
call fcn.005c0ac9
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esi + 0x45c8]
mov dword [esi + 0x1680c], 3
cmp eax, 0x4000
mov dword [esi], 1
jne 0x487827
mov eax, dword [esp + 0x40]
test eax, eax
je 0x487827
mov edx, eax
push edx
call fcn.005c0ac9
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esi + 0x45c8]
mov dword [esi + 0x1680c], 3
cmp eax, 0x4000
mov dword [esi], 1
jne 0x487827
mov eax, dword [esp + 0x40]
test eax, eax
je 0x487827
push eax
call fcn.005c0ac9
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x24]
mov ebx, dword [esi + 0x3d40]
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x68]
add ebx, eax
mov dword [esi + 0x3d40], ebx
mov edi, dword [esi + 0x3d44]
adc edi, ecx
add edx, eax
mov dword [esi + 0x68], edx
mov eax, dword [esi + 0x6c]
adc eax, ecx
mov dword [esi + 0x3d44], edi
mov dword [esi + 0x6c], eax
jmp 0x487886
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x3d40]
add ecx, eax
mov dword [esi + 0x3d40], ecx
mov ecx, dword [esp + 0x28]
adc dword [esi + 0x3d44], ecx
mov edx, dword [esi + 0x3d44]
mov eax, dword [esi + 0x3d40]
push edx
push eax
call fcn.00482620
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret