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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, dword [ebx + 8]
test esi, esi
jne 0x100383af
cmp dword [ebx + 0x78], esi
jne 0x100383a4
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x100383a4
mov byte [ebx + 0x17], 1
push ebx
call fcn.100c9120
add esp, 4
mov esi, eax
mov eax, dword [ebx + 0x28]
dec dword [ebx + 0x38]
dec eax
cmp dword [ebp + 0x24], 0
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x38]
mov dword [ebp - 4], eax
jge 0x100383d9
push eax
mov eax, dword [ebp + 0x18]
movzx eax, byte [eax + 0x18]
push eax
push 0x31
push esi
call fcn.100c8760
add esp, 0x10
mov ecx, dword [ebp + 0x18]
xor eax, eax
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x14]
mov dword [ebp - 0x14], edi
test edi, edi
jle 0x1003846e
mov edi, dword [ebp - 4]
mov edx, dword [ebp + 0x1c]
movzx eax, word [edx + eax*4]
push eax
push dword [ecx]
call fcn.100c40d0
mov edx, dword [ebp + 0x20]
add esp, 8
mov ecx, dword [esi + 0x6c]
inc edx
cwde
add edx, eax
cmp dword [esi + 0x70], ecx
jg 0x10038429
push 0
push dword [ebp - 4]
push edx
push 0x32
push esi
call fcn.1006b1b0
mov edi, dword [ebp - 4]
add esp, 0x14
jmp 0x10038454
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ecx + 0x14]
mov dword [ebp - 0x14], ebx
cmp eax, ebx
jl 0x100383f2
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
cmp dword [ebp + 0x28], 0
jne 0x10038a04
cmp dword [ebp + 0x14], 0
jne 0x100386cf
mov al, byte [ebx + 0x13]
test al, al
jne 0x10038491
inc dword [ebx + 0x2c]
mov edi, dword [ebx + 0x2c]
jmp 0x100384a0
dec al
mov byte [ebx + 0x13], al
movzx eax, al
mov edi, dword [ebx + eax*4 + 0xa0]
mov eax, dword [ebp + 0x1c]
movzx eax, word [eax]
push eax
push dword [ecx]
call fcn.100c40d0
mov edx, dword [ebp + 0x20]
add esp, 8
mov ecx, dword [esi + 0x6c]
inc edx
cwde
add edx, eax
cmp dword [esi + 0x70], ecx
jg 0x100384d1
push 0
push edi
push edx
push 0x51
push esi
call fcn.1006b1b0
add esp, 0x14
jmp 0x100384ff
mov ebx, dword [ebp + 8]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x51
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x6c]
mov dword [ebp - 0x14], edx
cmp dword [esi + 0x70], edx
jg 0x1003851f
push 0
push 0
push edi
push 0xd
push esi
call fcn.1006b1b0
add esp, 0x14
mov dword [ebp - 0x14], eax
jmp 0x1003854e
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax]
jne 0x100385be
cmp dword [ebp + 0x24], 1
jne 0x100385be
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x1003857a
push edi
push dword [ebp - 4]
push dword [ebp + 0x20]
push 0x35
push esi
call fcn.1006b1b0
add esp, 0x14
jmp 0x100385a7
mov edx, dword [ebp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp - 4]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x100385be
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
push 0x70
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
push ebx
call fcn.100b4250
mov ecx, dword [esi + 0x6c]
add esp, 0x14
cmp dword [esi + 0x70], ecx
jg 0x100385ed
push edi
push 0
push dword [ebp - 8]
push 0x1f
push esi
call fcn.1006b1b0
add esp, 0x14
jmp 0x1003861b
mov edx, dword [ebp - 8]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x1f
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x10038637
push 0
push dword [ebp - 4]
push 0
push 9
push esi
call fcn.1006b1b0
add esp, 0x14
jmp 0x10038669
mov edx, dword [ebp - 4]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 9
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x1003867b
mov eax, 0x101296cc
jmp 0x10038687
mov eax, dword [esi + 0x68]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*4]
add eax, 0xffffffe0
mov dword [eax], edx
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x1003869b
mov eax, 0x101296c4
jmp 0x100386a7
mov eax, dword [ebp - 0x14]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
test edi, edi
je 0x10038a04
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x10038a04
movzx eax, al
mov dword [ebx + eax*4 + 0xa0], edi
inc byte [ebx + 0x13]
jmp 0x10038a04
push edi
push ebx
call fcn.100aeb50
mov ecx, dword [esi + 0x6c]
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0x2c]
cmp dword [esi + 0x70], ecx
jg 0x100386fe
push dword [ebp + 0xc]
push edx
push dword [ebp - 8]
push 0x70
push esi
call fcn.1006b1b0
add esp, 0x14
jmp 0x1003872c
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x70
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0x10], 0
lea ecx, [eax + ecx*4]
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
push dword [ebp + 0x14]
mov eax, dword [ebx + 8]
push ebx
mov dword [ebp - 0x10], eax
call fcn.100b2220
mov edx, eax
add esp, 8
test edx, edx
je 0x10038780
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
cmp byte [ecx + 0x57], 0
je 0x1003876b
cmp dword [ecx + 0x210], 0
jne 0x10038780
add dword [edx], 0xffffffff
jne 0x10038780
push edx
push dword [edx + 0xc]
call fcn.10094130
add esp, 8
jmp 0x10038780
mov eax, dword [eax + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf8
mov dword [eax + ecx*4 - 4], edx
test edi, edi
jle 0x10038807
mov eax, dword [ebp - 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
movzx eax, word [eax + ebx*4]
push eax
mov eax, dword [ebp + 0x18]
push dword [eax]
call fcn.100c40d0
mov ecx, dword [ebp + 0x20]
add esp, 8
inc ecx
cwde
add eax, ecx
mov ecx, dword [esi + 0x6c]
mov dword [ebp - 0x1c], eax
cmp dword [esi + 0x70], ecx
jg 0x100387cb
mov edx, dword [ebp - 0x10]
push 0
push edx
push eax
push 0x50
push esi
call fcn.1006b1b0
add esp, 0x14
jmp 0x100387fc
mov edx, dword [ebp - 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + ecx*4], 0x50
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
inc dword [ebp - 0x10]
inc ebx
cmp ebx, edi
jl 0x10038790
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
cmp eax, dword [edx]
jne 0x1003894a
cmp dword [ebp + 0x24], 1
jne 0x1003894a
mov ecx, dword [esi + 0x6c]
mov dword [ebp - 0x18], ecx
lea eax, [ecx + 1]
add eax, edi
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x10], eax
test edi, edi
jle 0x100388ff
mov ebx, ecx
nop dword [eax]
mov ecx, dword [ebp + 0x1c]
movzx eax, word [ecx + eax*4]
push eax
push dword [edx]
call fcn.100c40d0
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x14]
inc ecx
cwde
add eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 4]
movzx edi, word [eax + ecx*2]
push edi
push dword [edx + 0xc]
call fcn.100c40d0
mov ecx, dword [ebp + 0x20]
add esp, 0x10
cwde
lea edx, [ecx + 1]
add edx, eax
mov eax, dword [ebp + 0x10]
cmp di, word [eax + 0x20]
mov edi, dword [ebp - 0x18]
cmove edx, ecx
cmp dword [esi + 0x70], ebx
jg 0x1003889f
push edx
push dword [ebp - 0x1c]
push edi
push 0x34
push esi
call fcn.1006b1b0
add esp, 0x14
jmp 0x100388c9
lea eax, [ebx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 0x68]
mov ebx, dword [ebp - 0x1c]
mov dword [eax + ecx*4], 0x34
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ebx, dword [esi + 0x6c]
mov ecx, ebx
test ebx, ebx
jle 0x100388e7
mov eax, dword [esi + 0x68]
lea ecx, [ebx + ebx*4]
mov edx, 0x10
mov word [eax + ecx*4 - 0x12], dx
mov ebx, dword [esi + 0x6c]
mov ecx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
inc eax
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
cmp eax, edi
jl 0x10038840
mov ebx, dword [ebp + 8]
cmp dword [esi + 0x70], ecx
jg 0x10038918
push 0
push dword [ebp - 4]
push 0
push 9
push esi
call fcn.1006b1b0
add esp, 0x14
jmp 0x1003894a
mov edx, dword [ebp - 4]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 9
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push edi
push dword [ebp + 0x14]
push dword [ebx]
call fcn.100afdb0
add esp, 8
push eax
push 0
push edi
push dword [ebp - 0xc]
push 0x60
push esi
call fcn.100c8810
mov ecx, dword [esi + 0x6c]
add esp, 0x1c
mov dword [ebp - 0x1c], ecx
cmp dword [esi + 0x70], ecx
jg 0x10038990
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 8]
push 0x1d
push esi
call fcn.1006b1b0
mov edx, dword [ebp - 0xc]
add esp, 0x14
mov ecx, eax
jmp 0x100389c3
mov edx, dword [ebp - 8]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp - 4]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + ecx*4], 0x1d
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x100389da
mov eax, dword [esi + 0x68]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edi
cmp edi, 1
jne 0x100389f9
test edx, edx
je 0x10038a04
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x10038a04
movzx eax, al
mov dword [ebx + eax*4 + 0xa0], edx
inc byte [ebx + 0x13]
jmp 0x10038a04
cmp edi, dword [ebx + 0x1c]
jle 0x10038a04
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edx
mov ecx, dword [ebp + 0x18]
mov dl, byte [ecx + 0x18]
test dl, dl
jne 0x10038afc
mov eax, dword [ebx]
mov eax, dword [eax + 0x20]
and eax, 0x80000
or eax, 0
jne 0x10038afc
cmp dword [ebx + 0x78], eax
jne 0x10038afc
cmp byte [ebx + 0x14], al
jne 0x10038afc
mov edi, dword [ebx + 8]
test edi, edi
jne 0x10038a5c
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x10038a4a
mov byte [ebx + 0x17], 1
push ebx
call fcn.100c9120
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0x78]
test eax, eax
jne 0x10038a5e
mov eax, ebx
mov byte [eax + 0x15], 1
mov edx, dword [edi + 0x6c]
cmp dword [edi + 0x70], edx
jg 0x10038a82
push 0
push 2
push 0x313
push 0x46
push edi
call fcn.1006b1b0
add esp, 0x14
mov edx, eax
jmp 0x10038ab5
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x46
mov dword [eax + ecx*4 + 4], 0x313
mov dword [eax + ecx*4 + 8], 2
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
jne 0x10038ae3
test edx, edx
jns 0x10038ac5
mov edx, dword [edi + 0x6c]
dec edx
mov eax, dword [edi + 0x68]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x10038ae3
push 0xffffffffffffffff
push 0
push eax
push edi
call fcn.100e5fe0
add esp, 0x10
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x10038b62
lea ecx, [eax + eax*4]
mov edx, 4
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
jmp 0x10038b62
mov edi, dword [ebp + 0x24]
mov al, dl
test edi, edi
jle 0x10038b18
test dl, dl
jne 0x10038b18
mov eax, dword [ebx + 0x78]
test eax, eax
cmovne ebx, eax
mov byte [ebx + 0x15], 1
mov al, byte [ecx + 0x18]
mov ecx, dword [esi + 0x6c]
movzx edx, al
cmp dword [esi + 0x70], ecx
jg 0x10038b37
push 0
push edi
push edx
push 0x9e
push esi
call fcn.1006b1b0
add esp, 0x14
jmp 0x10038b62
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x9e
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 4]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x10038b7f
push edx
push esi
push ecx
call fcn.1007fb90
add esp, 0xc
jmp 0x10038b88
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x10038ba9
push 0
push 0
push dword [ebp - 8]
push 0x7a
push esi
call fcn.1006b1b0
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
pop edi
pop esi
pop ebx
mov dword [eax + ecx*4], 0x7a
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov esp, ebp
pop ebp
ret