Function at 0x63231980
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 0x632319cc
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 0x632323ac
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 0x63231a35
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x63231a35
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 0x63231a31
jg 0x63231a19
cmp edi, edx
jbe 0x63231a31
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 0x63231a35
mov ebx, dword [esp + 0x28]
test ebx, ebx
jg 0x63231a80
jl 0x63231a3f
test ebp, ebp
ja 0x63231a80
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x63231a58
mov dword [esi], 1
mov dword [esi + 0x24], 1
jmp 0x63232223
mov eax, dword [esi + 0x54]
mov dword [esi], 1
test eax, eax
je 0x63231a71
mov dword [esi + 0x24], 1
jmp 0x63232223
mov dword [esi + 0x1680c], 2
jmp 0x63232223
mov edx, dword [esi + 0x15ff4]
push esi
push ebp
push edx
call fcn.63232ad0
mov eax, dword [esi + 0x3d30]
add esp, 0xc
test eax, eax
jne 0x63231bf6
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x63231c01
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x63231bf6
cmp dword [esi + 0x45c8], 0x4000
jne 0x63231b83
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 0x63232223
cmp byte [edi], 0xa
jne 0x63231b2f
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 0x63231b52
mov eax, dword [esp + 0x14]
test eax, eax
ja 0x63231b57
jmp 0x63231b52
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 0x63231b52
mov eax, dword [esp + 0x14]
test eax, eax
ja 0x63231b57
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 0x63231add
jl 0x63232223
mov eax, edx
test eax, eax
ja 0x63231add
jmp 0x63232223
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, 0x14
mov dword [esp + 0x14], 0
test edi, edi
jle 0x63231bd1
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 0x63231bc6
cmp eax, ebp
je 0x63232223
mov ebp, dword [esp + 0x24]
test eax, eax
jne 0x63231bcd
dec edi
jmp 0x63231b96
xor edi, edi
jmp 0x63231b96
mov eax, dword [esi + 0x3d24]
test eax, eax
jne 0x63232223
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 0x63231e4c
mov eax, dword [esi + 0x50]
test eax, eax
jne 0x63231e4c
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 0x63231c74
jl 0x63231c52
cmp ebx, dword [esi + 0x70]
jae 0x63231c74
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 0x63231c7d
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 0x63231db4
jg 0x63231ca9
cmp eax, dword [esi + 0x78]
jb 0x63231db4
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x88]
cmp eax, dword [esi + 0x74]
jg 0x63231e31
jl 0x63231cc9
cmp ecx, dword [esi + 0x70]
jae 0x63231e31
cmp dword [esi + 0x45c8], 0x4000
jne 0x63231da2
cmp eax, ebx
jg 0x63231e16
mov eax, dword [esp + 0x2c]
jl 0x63231cef
cmp ecx, eax
jae 0x63231e16
cmp byte [edi], 0xa
jne 0x63231d50
mov byte [edx], 0xd
mov ecx, dword [esi + 0x74]
inc edx
cmp ebx, ecx
jg 0x63231d32
jl 0x63231d06
cmp eax, dword [esi + 0x70]
jae 0x63231d32
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 0x63231e16
jl 0x63231d6e
mov ecx, dword [esi + 0x88]
cmp ecx, eax
jae 0x63231e16
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 0x63231df7
cmp eax, ebx
jg 0x63231e16
jl 0x63231dae
cmp ecx, dword [esp + 0x2c]
jae 0x63231e16
mov cl, byte [edi]
mov byte [edx], cl
jmp 0x63231d72
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 0x63231e16
jl 0x63231de4
mov eax, dword [esi + 0x98]
cmp eax, ecx
jae 0x63231e16
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 0x63231c89
jl 0x63231e0d
test ebp, ebp
ja 0x63231c89
mov dword [esp + 0x24], ebp
jmp 0x63232223
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 0x63231e62
mov eax, dword [esi + 0x50]
test eax, eax
je 0x63232223
mov ebp, dword [esp + 0x24]
mov eax, dword [esi + 0x45c8]
mov dword [esp + 0x1c], 3
cmp eax, 0x4000
mov edi, ebp
jne 0x63231ef4
lea ecx, [ebp + ebp]
push ecx
call fcn.632100d6
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x40], edx
je 0x63231edd
xor ecx, ecx
test ebp, ebp
jle 0x63231ed7
mov ebx, dword [esi + 0x15ffc]
cmp byte [ecx + ebx], 0xa
jne 0x63231ec5
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 0x63231e96
mov dword [esp + 0x10], edx
jmp 0x63231f06
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 0x6323216f
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 0x63231f63
jl 0x63231f3f
cmp ebx, dword [esi + 0x70]
jae 0x63231f63
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 0x63231f6e
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.0x632321f3.0
mov eax, dword [esi + 0x9c]
mov edx, dword [esi + 0x7c]
mov ecx, dword [esi + 0x98]
cmp eax, edx
jl 0x63232098
jg 0x63231faa
cmp ecx, dword [esi + 0x78]
jb 0x63232098
mov ebp, dword [esi + 0x8c]
mov eax, dword [esi + 0x74]
mov edx, dword [esi + 0x88]
cmp ebp, eax
jg 0x632320fe
jl 0x63231fcc
cmp edx, dword [esi + 0x70]
jae 0x632320fe
mov ecx, edi
xor eax, eax
add ecx, edx
mov edx, dword [esp + 0x30]
adc eax, ebp
cmp eax, edx
jl 0x63231ff8
jg 0x63231fe4
cmp ecx, dword [esp + 0x2c]
jbe 0x63231ff8
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.63236b80
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 0x6323207c
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 0x63232084
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x1c]
mov ecx, 3
cmp eax, ecx
ja case.0x63232091.2
jmp dword [eax*4 + 0x632323b8]
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 0x63232133
jl 0x632320c8
mov eax, dword [esi + 0x98]
cmp eax, ecx
jae 0x63232133
mov eax, dword [esp + 0x10]
dec edi
inc eax
mov dword [esp + 0x10], eax
jmp 0x63231f80
mov eax, dword [esp + 0x20]
test eax, eax
jne case.0x632321f3.0
jmp 0x63231f80
mov dword [esi + 0x1680c], ecx
jmp 0x6323213d
mov dword [esi + 0x1680c], ecx
mov dword [esi], 1
jmp 0x6323213d
mov eax, dword [esi + 0x45c8]
mov dword [esi + 0x1680c], 2
cmp eax, 0x4000
jne 0x63232126
mov eax, dword [esp + 0x40]
test eax, eax
je 0x63232126
push eax
call fcn.63210443
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 0x63232337
mov eax, dword [esp + 0x40]
test eax, eax
je 0x63232337
push eax
call fcn.63210443
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.0x632321f3.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.63236b80
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 0x632321de
mov ecx, dword [esp + 0x10]
sub edi, eax
add ecx, eax
add ebp, eax
mov dword [esp + 0x10], ecx
adc ebx, 0
jmp 0x632321e6
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x1c]
cmp eax, 3
ja case.default.0x632321f3
jmp dword [eax*4 + 0x632323c8]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x6323217d
cmp dword [esi + 0x45c8], 0x4000
jne 0x63232223
mov eax, dword [esp + 0x40]
test eax, eax
je 0x63232223
push eax
call fcn.63210443
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 0x6323226a
mov eax, dword [esi + 0x54]
test eax, eax
je 0x6323237a
mov eax, dword [esi + 0x50]
test eax, eax
je 0x63232344
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 0x63232396
mov eax, dword [esi + 0x45c8]
mov dword [esi + 0x1680c], 3
cmp eax, 0x4000
jne 0x63232337
mov eax, dword [esp + 0x40]
test eax, eax
je 0x63232337
mov ecx, eax
push ecx
call fcn.63210443
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 0x63232337
mov eax, dword [esp + 0x40]
test eax, eax
je 0x63232337
mov edx, eax
push edx
call fcn.63210443
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 0x63232337
mov eax, dword [esp + 0x40]
test eax, eax
je 0x63232337
push eax
call fcn.63210443
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 0x63232396
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.6322d160
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret