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

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
mov eax, dword [esi + 0x167c4]
test eax, eax
mov eax, dword [esi + 0x167bc]
je 0x10033d3c
mov ecx, dword [esi + 0x167b8]
mov dword [esi + 0x167bc], 0
add ecx, eax
pop edi
mov dword [esi + 0x167b8], ecx
mov ecx, dword [esi + 0x15fac]
mov dword [esi + 0x15fb0], ecx
pop esi
pop ebp
mov eax, 0x32
pop ebx
add esp, 0x24
ret
test eax, eax
je 0x100346fc
cdq
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x44]
test eax, eax
mov dword [esp + 0x28], edx
jne 0x10033d97
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x10033d97
mov ebx, dword [esi + 0x3d38]
mov eax, dword [esp + 0x24]
mov ebp, dword [esi + 0x3d3c]
mov ecx, dword [esi + 0x4554]
mov edi, ebx
mov edx, dword [esi + 0x4550]
add edi, eax
mov eax, ebp
adc eax, dword [esp + 0x28]
cmp eax, ecx
jl 0x10033d97
jg 0x10033d8b
cmp edi, edx
jbe 0x10033d97
sub edx, ebx
sbb ecx, ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x28]
test eax, eax
jg 0x10033dea
jl 0x10033da9
mov ebp, dword [esp + 0x24]
test ebp, ebp
ja 0x10033dee
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x10033dc2
mov dword [esi], 1
mov dword [esi + 0x20], 1
jmp 0x1003455b
mov eax, dword [esi + 0x4c]
mov dword [esi], 1
test eax, eax
je 0x10033ddb
mov dword [esi + 0x20], 1
jmp 0x1003455b
mov dword [esi + 0x167c4], 2
jmp 0x1003455b
mov ebp, dword [esp + 0x24]
mov edx, dword [esi + 0x15fac]
push esi
push ebp
push edx
call fcn.10034de0
mov eax, dword [esi + 0x3d28]
add esp, 0xc
test eax, eax
jne 0x10033f6a
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x10033f75
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x10033f6a
cmp dword [esi + 0x45bc], 0x4000
jne 0x10033ef7
mov eax, dword [esp + 0x24]
mov edi, dword [esi + 0x15fb4]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
xor ebp, ebp
mov byte [esp + 0x38], 0xd
mov byte [esp + 0x39], 0xa
test ebp, ebp
jne 0x1003455b
cmp byte [edi], 0xa
jne 0x10033ea3
mov edx, dword [esi + 0x88]
mov eax, dword [esi + 0x167c0]
add edx, 1
push ebp
mov dword [esi + 0x88], edx
mov ecx, dword [esi + 0x8c]
adc ecx, ebp
lea edx, [esp + 0x3c]
mov dword [esi + 0x8c], ecx
lea ecx, [esp + 0x14]
push ecx
push 2
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10033ec6
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x10033ecb
jmp 0x10033ec6
mov edx, dword [esi + 0x167c0]
lea ecx, [esp + 0x10]
push 0
push ecx
push 1
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10033ec6
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x10033ecb
mov ebp, 1
mov edx, dword [esp + 0x2c]
inc edi
add edx, 0xffffffff
adc ebx, 0xffffffff
mov dword [esp + 0x2c], edx
test ebx, ebx
jg 0x10033e51
jl 0x1003455b
mov eax, edx
test eax, eax
ja 0x10033e51
jmp 0x1003455b
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, 0x14
mov dword [esp + 0x10], 0
test edi, edi
jle 0x10033f45
mov ecx, dword [esi + 0x15fb4]
mov edx, dword [esi + 0x167c0]
lea eax, [esp + 0x10]
push 0
push eax
push ebp
push ecx
push edx
call ebx
test eax, eax
mov eax, dword [esp + 0x10]
je 0x10033f3a
cmp eax, ebp
je 0x1003455b
mov ebp, dword [esp + 0x24]
test eax, eax
jne 0x10033f41
dec edi
jmp 0x10033f0a
xor edi, edi
jmp 0x10033f0a
mov eax, dword [esi + 0x3d1c]
test eax, eax
jne 0x1003455b
mov dword [esi + 0x167c4], 2
pop edi
pop esi
pop ebp
mov eax, 0x32
pop ebx
add esp, 0x24
ret
mov eax, dword [esi + 0x44]
test eax, eax
je 0x100341bd
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x100341bd
mov eax, dword [esi + 0x15fb4]
mov edx, dword [esi + 0x78]
mov edi, dword [esi + 0x4550]
mov ecx, dword [esi + 0x8c]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x80]
mov ebp, dword [esi + 0x4554]
add edx, eax
mov eax, dword [esi + 0x88]
mov ebx, eax
add ebx, edi
mov edi, ecx
adc edi, ebp
mov ebp, dword [esi + 0x6c]
cmp edi, ebp
jg 0x10033fe5
jl 0x10033fc3
cmp ebx, dword [esi + 0x68]
jae 0x10033fe5
mov edi, dword [esi + 0x70]
mov ebp, dword [esi + 0x74]
mov ebx, dword [esi + 0x4550]
sub eax, edi
mov edi, dword [esi + 0x4554]
sbb ecx, ebp
add eax, ebx
adc ecx, edi
mov dword [esp + 0x2c], eax
mov ebx, ecx
jmp 0x10033fee
mov ecx, dword [esi + 0x68]
mov ebx, ebp
mov dword [esp + 0x2c], ecx
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x30], ebx
mov ecx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
cmp ecx, dword [esi + 0x74]
jl 0x10034125
jg 0x1003401a
cmp eax, dword [esi + 0x70]
jb 0x10034125
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0x80]
cmp eax, dword [esi + 0x6c]
jg 0x100341a2
jl 0x1003403a
cmp ecx, dword [esi + 0x68]
jae 0x100341a2
cmp dword [esi + 0x45bc], 0x4000
jne 0x10034113
cmp eax, ebx
jg 0x10034187
mov eax, dword [esp + 0x2c]
jl 0x10034060
cmp ecx, eax
jae 0x10034187
cmp byte [edi], 0xa
jne 0x100340c1
mov byte [edx], 0xd
mov ecx, dword [esi + 0x6c]
inc edx
cmp ebx, ecx
jg 0x100340a3
jl 0x10034077
cmp eax, dword [esi + 0x68]
jae 0x100340a3
mov ecx, dword [esi + 0x88]
add ecx, 1
mov dword [esi + 0x88], ecx
mov ecx, dword [esi + 0x8c]
adc ecx, 0
add eax, 1
adc ebx, 0
mov dword [esi + 0x8c], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov ecx, dword [esi + 0x80]
add ecx, 1
mov dword [esi + 0x80], ecx
mov ecx, dword [esi + 0x84]
adc ecx, 0
mov dword [esi + 0x84], ecx
mov ecx, dword [esi + 0x84]
cmp ecx, ebx
jg 0x10034187
jl 0x100340df
mov ecx, dword [esi + 0x80]
cmp ecx, eax
jae 0x10034187
mov al, byte [edi]
mov byte [edx], al
mov ecx, dword [esi + 0x80]
inc edx
inc edi
add ecx, 1
mov dword [esi + 0x80], ecx
mov eax, dword [esi + 0x84]
mov ecx, dword [esp + 0x24]
adc eax, 0
add ecx, 0xffffffff
mov dword [esi + 0x84], eax
mov dword [esp + 0x24], ecx
adc ebp, 0xffffffff
jmp 0x10034168
cmp eax, ebx
jg 0x10034187
jl 0x1003411f
cmp ecx, dword [esp + 0x2c]
jae 0x10034187
mov cl, byte [edi]
mov byte [edx], cl
jmp 0x100340e3
add eax, 1
adc ecx, 0
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], ecx
mov ebx, dword [esi + 0x94]
mov ecx, dword [esi + 0x45d6]
xor eax, eax
cmp ebx, eax
jg 0x10034187
jl 0x10034155
mov eax, dword [esi + 0x90]
cmp eax, ecx
jae 0x10034187
mov ebx, dword [esp + 0x24]
add ebx, 0xffffffff
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x30]
adc ebp, 0xffffffff
inc edi
test ebp, ebp
jg 0x10033ffa
jl 0x1003417e
mov eax, dword [esp + 0x24]
test eax, eax
ja 0x10033ffa
mov dword [esp + 0x28], ebp
jmp 0x1003455b
mov dword [esi + 0x167c4], 3
pop edi
mov dword [esp + 0x24], ebp
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x24
ret
mov dword [esi + 0x167c4], 2
pop edi
mov dword [esp + 0x24], ebp
pop esi
pop ebp
mov eax, 0x32
pop ebx
add esp, 0x24
ret
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x100341d3
mov eax, dword [esi + 0x48]
test eax, eax
je 0x1003455b
mov ebp, dword [esp + 0x24]
mov eax, dword [esi + 0x45bc]
mov dword [esp + 0x18], 3
cmp eax, 0x4000
mov edi, ebp
jne 0x10034267
lea ecx, [ebp + ebp]
push ecx
call fcn.10039ff8
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x38], edx
je 0x10034250
xor ecx, ecx
test ebp, ebp
jle 0x10034248
mov ebx, dword [esi + 0x15fb4]
cmp byte [ecx + ebx], 0xa
jne 0x10034236
mov byte [eax], 0xd
mov ebx, dword [esi + 0x88]
inc eax
add ebx, 1
mov dword [esi + 0x88], ebx
mov ebx, dword [esi + 0x8c]
adc ebx, 0
inc edi
mov dword [esi + 0x8c], ebx
mov ebx, dword [esi + 0x15fb4]
inc eax
mov bl, byte [ecx + ebx]
inc ecx
mov byte [eax - 1], bl
cmp ecx, ebp
jl 0x10034207
mov ebp, edx
mov dword [esp + 0x1c], ebp
jmp 0x10034279
mov dword [esi + 0x167c4], 2
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x24
ret
mov ebp, dword [esi + 0x15fb4]
mov dword [esp + 0x38], 0
mov dword [esp + 0x1c], ebp
mov eax, dword [esi + 0x48]
test eax, eax
je 0x100344c5
mov eax, dword [esi + 0x88]
mov edx, dword [esi + 0x4550]
mov ecx, dword [esi + 0x8c]
mov ebp, dword [esi + 0x4554]
mov ebx, eax
add ebx, edx
mov edx, ecx
adc edx, ebp
mov ebp, dword [esi + 0x6c]
cmp edx, ebp
jg 0x100342d6
jl 0x100342b2
cmp ebx, dword [esi + 0x68]
jae 0x100342d6
mov edx, dword [esi + 0x70]
mov ebp, dword [esi + 0x74]
mov ebx, dword [esi + 0x4550]
sub eax, edx
mov edx, dword [esi + 0x4554]
sbb ecx, ebp
add eax, ebx
adc ecx, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
jmp 0x100342e1
mov edx, dword [esi + 0x68]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x20], 0
test edi, edi
jbe case.0x10034533.0
mov eax, dword [esi + 0x94]
mov edx, dword [esi + 0x74]
mov ecx, dword [esi + 0x90]
cmp eax, edx
jl 0x100343f6
jg 0x10034317
cmp ecx, dword [esi + 0x70]
jb 0x100343f6
mov ebp, dword [esi + 0x84]
mov eax, dword [esi + 0x6c]
mov edx, dword [esi + 0x80]
cmp ebp, eax
jg 0x10034454
jl 0x10034339
cmp edx, dword [esi + 0x68]
jae 0x10034454
mov ecx, edi
xor eax, eax
add ecx, edx
mov edx, dword [esp + 0x30]
adc eax, ebp
cmp eax, edx
jl 0x10034365
jg 0x10034351
cmp ecx, dword [esp + 0x2c]
jbe 0x10034365
mov edi, dword [esp + 0x2c]
mov eax, dword [esi + 0x80]
sub edi, eax
mov dword [esp + 0x18], 0
mov ecx, dword [esi + 0x4578]
mov edx, dword [esi + 0x64]
lea eax, [esp + 0x18]
mov dword [esp + 0x14], edi
push eax
mov eax, dword [esi + 0x60]
push ecx
mov ecx, 0x20
call fcn.1003a5b0
mov edx, dword [esi + 0x60]
push eax
mov eax, dword [esi + 0x58]
push edx
mov edx, dword [esi + 0x5c]
mov ecx, 0x20
call fcn.1003a5b0
push eax
mov eax, dword [esi + 0x58]
lea ecx, [esp + 0x28]
push eax
push ecx
push ebx
push 1
call dword [esi + 0x4574]
mov ecx, dword [esp + 0x14]
mov ebp, dword [esi + 0x80]
mov eax, ecx
cdq
add ebp, eax
mov dword [esi + 0x80], ebp
mov ebp, dword [esi + 0x84]
adc ebp, edx
cmp ecx, edi
mov dword [esi + 0x84], ebp
jae 0x100343da
add ebx, ecx
sub edi, ecx
jmp 0x100343e2
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x18]
mov ecx, 3
cmp eax, ecx
ja case.0x100343ef.2
jmp dword [eax*4 + 0x10034708]
add ecx, 1
adc eax, 0
mov dword [esi + 0x90], ecx
mov ecx, dword [esi + 0x45d6]
mov dword [esi + 0x94], eax
mov edx, dword [esi + 0x94]
xor eax, eax
cmp edx, eax
jg 0x10034489
jl 0x10034426
mov eax, dword [esi + 0x90]
cmp eax, ecx
jae 0x10034489
dec edi
inc ebx
jmp 0x100342ed
mov eax, dword [esp + 0x20]
test eax, eax
jne case.0x10034533.0
jmp 0x100342ed
mov dword [esi + 0x167c4], ecx
jmp 0x10034493
mov dword [esi + 0x167c4], ecx
mov dword [esi], 1
jmp 0x10034493
mov eax, dword [esi + 0x45bc]
mov dword [esi + 0x167c4], 2
cmp eax, 0x4000
jne 0x1003447c
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1003447c
push eax
call fcn.10039f0f
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x32
pop ebx
add esp, 0x24
ret
mov dword [esi + 0x167c4], 3
cmp dword [esi + 0x45bc], 0x4000
jne 0x10034651
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10034651
push eax
call fcn.10039f0f
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
xor ebx, ebx
test edi, edi
jbe case.0x10034533.0
mov edx, dword [esi + 0x4578]
mov eax, dword [esi + 0x60]
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
push ecx
push edx
mov edx, dword [esi + 0x64]
mov ecx, 0x20
call fcn.1003a5b0
mov edx, dword [esi + 0x5c]
push eax
mov eax, dword [esi + 0x60]
mov ecx, 0x20
push eax
mov eax, dword [esi + 0x58]
call fcn.1003a5b0
mov ecx, dword [esi + 0x58]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
push ebp
push 1
call dword [esi + 0x4574]
mov eax, dword [esp + 0x14]
cmp eax, edi
jae 0x10034521
add ebp, eax
sub edi, eax
jmp 0x10034526
mov ebx, 1
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x10034533
jmp dword [eax*4 + 0x10034718]
test ebx, ebx
je 0x100344c7
cmp dword [esi + 0x45bc], 0x4000
jne 0x1003455b
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1003455b
push eax
call fcn.10039f0f
add esp, 4
mov eax, dword [esi + 0x167bc]
mov ecx, dword [esi + 0x167b8]
add ecx, eax
mov eax, dword [esi + 0x44]
mov dword [esi + 0x167b8], ecx
mov ecx, dword [esi + 0x15fac]
test eax, eax
mov dword [esi + 0x167bc], 0
mov dword [esi + 0x15fb0], ecx
je 0x1003465e
mov edx, dword [esi + 0x80]
mov eax, dword [esi + 0x84]
mov dword [esi + 0x3d38], edx
jmp 0x100346e0
mov eax, dword [esi + 0x45bc]
mov dword [esi + 0x167c4], 3
cmp eax, 0x4000
jne 0x10034651
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10034651
push eax
call fcn.10039f0f
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [esi + 0x45bc]
mov dword [esi + 0x167c4], 3
cmp eax, 0x4000
mov dword [esi], 1
jne 0x10034651
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10034651
mov ecx, eax
push ecx
call fcn.10039f0f
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [esi + 0x45bc]
mov dword [esi + 0x167c4], 3
cmp eax, 0x4000
mov dword [esi], 1
jne 0x10034651
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10034651
mov edx, eax
push edx
call fcn.10039f0f
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x24
ret
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x100346c2
mov eax, dword [esi + 0x48]
test eax, eax
je 0x1003468c
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x84]
mov dword [esi + 0x60], eax
mov dword [esi + 0x3d38], eax
mov dword [esi + 0x64], ecx
mov dword [esi + 0x3d3c], ecx
jmp 0x100346e6
mov eax, dword [esp + 0x24]
mov ebx, dword [esi + 0x3d38]
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x60]
add ebx, eax
mov dword [esi + 0x3d38], ebx
mov edi, dword [esi + 0x3d3c]
adc edi, ecx
add edx, eax
mov dword [esi + 0x60], edx
mov eax, dword [esi + 0x64]
adc eax, ecx
mov dword [esi + 0x3d3c], edi
mov dword [esi + 0x64], eax
jmp 0x100346e6
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x3d38]
add edx, ecx
mov dword [esi + 0x3d38], edx
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 0x3d3c]
adc eax, edx
mov dword [esi + 0x3d3c], eax
mov eax, dword [esi + 0x3d3c]
mov ecx, dword [esi + 0x3d38]
push eax
push ecx
call fcn.1002f690
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret