Function at 0x10039f64
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10072aa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
mov dword [esp + 0x40], edx
mov dword [esp + 0x10], 0x69ad59e5
push ebx
mov dword [esp + 0x1c], 0xffffffff
mov ebx, ecx
mov dword [esp + 0x10], 0xb1b0cadf
push esi
mov dword [esp + 0x24], 0xfffffffa
push edi
mov dword [esp + 0x10], 0xf5cbf793
mov dword [esp + 0x18], 0x2537
cmp dword [esp + 0x18], 0x413
push 0
mov dword [esp + 0x24], ebx
pop edx
jge 0x1003a0c4
lea eax, [esp + 0x90]
push eax
push 0x1000b654
call fcn.100578db
mov edi, dword [esp + 0x98]
xor eax, eax
mov ebx, dword [esp + 0x9c]
inc eax
pop ecx
pop ecx
xor ecx, ecx
mov dword [esp + 0x18], eax
and dword [esp + 0x60], ecx
xor edx, edx
xor esi, esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], ecx
and dword [esp + 0xcc], ecx
test ebx, ebx
jl 0x1003a071
jg 0x1003a023
test edi, edi
je 0x1003a071
push 0
push 0xa
push ebx
add eax, eax
push edi
mov dword [esp + 0x28], eax
call fcn.1006d630
mov edi, eax
mov dword [esp + 0x88], ecx
lea eax, [esp + 0x88]
mov dword [esp + 0x8c], ebx
push eax
lea ecx, [esp + 0x5c]
mov ebx, edx
call fcn.100368f4
mov eax, dword [esp + 0x18]
test ebx, ebx
jg 0x1003a023
jl 0x1003a065
test edi, edi
jne 0x1003a023
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x24]
sub ecx, esi
sar ecx, 2
jmp 0x1003a084
xor eax, eax
cmp dword [esi + ecx*4], 7
sete al
lea edx, [eax + edx*2]
dec ecx
jns 0x1003a078
mov eax, dword [esp + 0x18]
dec eax
add eax, edx
push eax
push 0x1000b238
call fcn.10057af6
or dword [esp + 0xd4], 0xffffffff
pop ecx
pop ecx
test esi, esi
je 0x1003a0be
push esi
call fcn.10057c67
xor edx, edx
pop ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
jmp 0x1003a0c0
xor edx, edx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x18], edx
jmp 0x1003a0d9
mov eax, dword [esp + 0x18]
mov dword [esp + eax*4 + 0xb4], edx
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 3
jl 0x1003a0ca
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x1c], edx
je 0x1003a103
mov eax, dword [esp + 0x1c]
sub eax, 0xef70
neg eax
sbb eax, eax
inc eax
add eax, dword [esp + 0x1c]
je 0x1003a103
xor eax, eax
inc eax
jmp 0x1003a105
mov eax, edx
mov dword [esp + 0x24], eax
mov ecx, 0x56ce
mov eax, dword [esp + 0x24]
neg eax
sbb eax, eax
neg eax
mov dword [esp + 0x18], eax
imul eax, dword [esp + 0x18], 0xf9d6
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
sub ecx, eax
xor eax, eax
cmp ecx, 7
setl al
cmp eax, 5
je 0x1003a143
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
push 2
pop esi
dec eax
je 0x1003a186
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], 0xfffffffd
call fcn.10039eb5
jmp 0x1003a1ac
mov dword [esp + 0x10], edx
jmp 0x1003a19b
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xac], edx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], esi
jl 0x1003a18c
mov dword [esp + 0xac], 0x1cd1ac8c
mov dword [esp + 0x24], 0xfffffff6
jmp 0x1003a26a
mov dword [esp + 0x1c], 0x9f94ad8a
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 0xabed997
cmp dword [esp + 0x1c], 9
jbe 0x1003a206
mov eax, dword [esp + 0x1c]
neg eax
cmp eax, dword [esp + 0x1c]
jge 0x1003a1ea
cmp dword [esp + 0x18], edx
jne 0x1003a1ea
mov eax, edx
jmp 0x1003a1ed
xor eax, eax
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x18], eax
jle 0x1003a201
cmp dword [esp + 0x1c], edx
je 0x1003a206
xor eax, eax
inc eax
jmp 0x1003a208
mov eax, edx
cmp dword [esp + 0x24], eax
je 0x1003a232
mov dword [esp + 0x28], esi
cmp dword [esp + 0x28], edx
jl 0x1003a25d
mov byte [esp + 0x17], dl
cmp byte [esp + 0x17], 0
je 0x1003a22a
call fcn.10039eb8
xor edx, edx
dec dword [esp + 0x28]
jns 0x1003a218
jmp 0x1003a25d
call fcn.10039ec8
xor edx, edx
mov dword [esp + 0x10], edx
cmp dword [esp + 0x10], esi
jg 0x1003a25d
mov byte [esp + 0x2f], dl
lea ecx, [esp + 0x2f]
call fcn.10039f0b
inc dword [esp + 0x10]
push 0
pop edx
cmp dword [esp + 0x10], esi
jle 0x1003a243
cmp dword [esp + 0xb8], edx
jne 0x1003a275
inc dword [esp + 0x24]
cmp dword [esp + 0x24], 0xf
jle 0x1003a1b9
cmp dword [ebx + 0x10], edx
jne 0x1003a281
xor al, al
jmp 0x1003a5a6
push 0x59d3
lea eax, [esp + 0x50]
push eax
push 0x5246
push edx
call fcn.1003a72d
add esp, 0x10
mov dword [esp + 0x30], 0x477862f
mov dword [esp + 0x30], 0
push 0x1b
pop edi
jmp 0x1003a3c0
mov dword [esp + 0x38], 0x98070ade
mov dword [esp + 0x38], 0
jmp 0x1003a3ad
mov dword [esp + 0x40], 0xb666a756
lea ecx, [esp + 0x64]
mov dword [esp + 0x3c], 0x5ae649f6
push esi
call fcn.100105fb
mov dword [esp + 0x10], 0
jmp 0x1003a2fd
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
mov dword [eax + ecx*4], 4
inc dword [esp + 0x10]
cmp dword [esp + 0x10], esi
jl 0x1003a2ea
mov dword [esp + 0x40], 0xffffffe9
jmp 0x1003a382
mov dword [esp + 0x34], 7
mov dword [esp + 0xa0], 0x286f3a6
mov dword [esp + 0x34], edi
jmp 0x1003a378
mov dword [esp + 0x54], 0xffff
mov dword [esp + 0x9c], 0x939e
inc dword [esp + 0x54]
mov dword [esp + 0x3c], 0xfffffff8
jmp 0x1003a36d
mov byte [esp + 0x17], 0
cmp byte [esp + 0x17], 0
je 0x1003a358
call fcn.10039f21
mov byte [esp + 0x17], 0
cmp byte [esp + 0x17], 0
je 0x1003a369
call fcn.10039f2d
dec dword [esp + 0x3c]
cmp dword [esp + 0x3c], 0xffffffeb
je 0x1003a347
inc dword [esp + 0x34]
cmp dword [esp + 0x34], edi
jl 0x1003a326
inc dword [esp + 0x40]
cmp dword [esp + 0x40], 9
jg 0x1003a30d
cmp dword [esp + 0x64], 0
je 0x1003a3a9
push dword [esp + 0x64]
call fcn.10057c67
and dword [esp + 0x68], 0
and dword [esp + 0x6c], 0
and dword [esp + 0x70], 0
pop ecx
dec dword [esp + 0x38]
cmp dword [esp + 0x38], 0xffffffe7
jl 0x1003a2c6
mov eax, dword [esp + 0x30]
dec dword [esp + 0x30]
cmp dword [esp + 0x30], 0xfffffffe
jge 0x1003a2b1
cmp dword [ebx + 0x14], 0x10
jb 0x1003a3d5
mov ecx, dword [ebx]
jmp 0x1003a3d7
mov ecx, ebx
mov edi, 0xd6c0
cmp dword [ebx + 0x14], 0x10
mov dword [esp + 0x50], ecx
jb 0x1003a3ea
mov edx, dword [ebx]
jmp 0x1003a3ec
mov edx, ebx
mov eax, dword [ebx + 0x10]
add eax, edx
cmp ecx, eax
je 0x1003a5a4
mov al, byte [ecx]
cmp al, 0x30
jl 0x1003a540
cmp al, 0x39
jg 0x1003a540
mov dword [esp + 0x70], edi
xor ecx, ecx
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x20], 0x1d25bb08
mov dword [esp + 0x20], 0x32d38ca8
mov dword [esp + 0x10], ecx
jmp 0x1003a44b
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x44], 0xfffffffb
inc dword [esp + 0x10]
cmp dword [esp + 0x10], esi
jl 0x1003a43b
mov dword [esp + 0x44], 3
cmp dword [esp + 0x44], ecx
jl 0x1003a516
mov dword [esp + 0x20], 0xa1e1c5a3
mov dword [esp + 0x10], ecx
jmp 0x1003a484
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xa4], 0xca7b5cf1
inc dword [esp + 0x10]
cmp dword [esp + 0x10], esi
jl 0x1003a471
mov eax, dword [esp + 0x44]
cmp dword [esp + eax*4 + 0x70], ecx
jne 0x1003a49e
cmp dword [esp + 0x7c], ecx
jne 0x1003a49e
mov edx, ecx
jmp 0x1003a4a1
xor edx, edx
inc edx
mov eax, dword [esp + 0x44]
xor ecx, ecx
mov eax, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push 0
mov eax, dword [esp + eax*4 + 0x74]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xac]
mov eax, dword [esp + 0x48]
mov eax, dword [esp + eax*4 + 0x74]
mov eax, dword [esp + 0x48]
mov eax, dword [esp + eax*4 + 0x74]
inc eax
cmp eax, 0xffffffff
setle cl
imul ecx, edx
mov dword [esp + 0x24], ecx
xor ecx, ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x24]
cmp eax, 0x193fe696
setg cl
xor eax, eax
sub ecx, dword [esp + 0x4c]
cmp ecx, 0x1dd2
pop ecx
setl al
mov dword [esp + 0x20], eax
dec dword [esp + 0x44]
jns 0x1003a463
mov byte [esp + 0x17], cl
cmp byte [esp + 0x17], 0
je 0x1003a529
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_SetCommState]
lea edx, [esp + 0x50]
lea ecx, [esp + 0x4c]
call fcn.10039f47
mov ecx, dword [esp + 0x50]
inc ecx
jmp 0x1003a3dc
mov dword [esp + 0x10], 0xfffffff7
mov dword [esp + 0x10], 0x1b
cmp dword [esp + 0x10], 0xfffffff3
jg 0x1003a596
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [esp + 0x10], eax
jne 0x1003a596
mov dword [esp + 0x18], eax
jmp 0x1003a584
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x80]
call fcn.10039f5b
dec dword [esp + 0x18]
cmp dword [esp + 0x18], 0xfffffff2
jle 0x1003a569
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0xfffffff3
jle 0x1003a559
lea ecx, [esp + 0x4c]
call fcn.10039f5e
jmp 0x1003a27a
mov al, 1
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret