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

Disassembly:
sub esp, 0x90
mov eax, dword [0x10212de0]
mov edx, dword [0x10212de8]
push ebx
push ebp
mov dword [esp + 0x14], eax
push esi
mov esi, ecx
mov ecx, dword [0x10212de4]
mov dword [esp + 0x1c], ecx
lea eax, [esi + 0x290]
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x58]
lea ecx, [esi + 0x17c]
lea eax, [esp + 0x68]
mov dword [esp + 0x78], edx
mov edx, dword [ecx]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
push edi
xor edi, edi
cmp dword [esi + 0x2bc], edi
mov ebp, 3
mov ebx, 1
mov dword [esp + 0x20], ebp
mov dword [esp + 0x40], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
jne 0x101398df
push edi
push 4
push edi
lea edx, [esp + 0x44]
push edx
push edi
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x54]
call fcn.10140c40
mov ebx, dword [eax]
test bl, 1
je 0x10139902
push edi
push 4
lea edx, [esi + 0x110]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x54]
call fcn.101404c0
mov ebx, dword [eax]
cmp dword [esi + 0x2bc], edi
jne 0x1013992c
test bl, 1
mov dword [esp + 0x30], ebp
je 0x1013992c
push 1
lea edx, [esp + 0x2c]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x54]
call fcn.101bb780
mov ebx, dword [eax]
mov eax, dword [esi + 0x2bc]
cmp eax, edi
mov dword [esp + 0x24], 4
jne 0x101399c9
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
call dword [edx + 0xc]
test byte [eax + 0x14], 0x80
je 0x10139973
test bl, 1
je 0x10139973
push edi
push 1
lea eax, [esp + 0x30]
push eax
lea ecx, [esi + 0x278]
push ecx
mov ecx, dword [esi + 0x54]
lea edx, [esp + 0x20]
push edx
call fcn.101404c0
mov ebx, dword [eax]
test bl, 1
mov dword [esp + 0x30], edi
je 0x101399f0
push edi
push 0x10212ef0
lea eax, [esp + 0x30]
push eax
push edi
push 0x10212ea4
mov ecx, eax
push ecx
mov ecx, dword [esi + 0x54]
push edi
push 0x10212ebc
mov edx, eax
push edx
lea eax, [esp + 0x34]
push eax
call fcn.101ba740
mov ebx, dword [eax]
test bl, 1
je 0x101399f0
push edi
push 4
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esi + 0x54]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.10140ea0
jmp 0x101399ee
cmp eax, 1
jne 0x101399f0
test al, bl
je 0x101399f0
push edi
push 4
push edi
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esi + 0x54]
push edi
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.10140c40
mov ebx, dword [eax]
xor eax, eax
mov ebp, 1
xor cl, cl
cmp dword [esi + 0x2a8], eax
mov dword [esp + 0x44], 1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x4c], eax
jbe 0x10139ce3
lea edx, [esi + 0x58]
mov dword [esp + 0x34], edx
test bl, 1
je 0x10139cdc
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
lea edx, [esi + 0x110]
mov ebx, edx
mov edx, dword [ebx]
mov dword [esp + 0x50], edx
mov edx, dword [ebx + 4]
mov ebx, dword [ebx + 8]
mov ecx, eax
and ecx, 1
cmp cl, 1
sete byte [esp + 0x17]
add edx, dword [esp + 0x44]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], edx
lea edx, [esi + 0x11c]
mov ebx, edx
mov edx, dword [ebx]
mov dword [esp + 0x5c], edx
mov edx, dword [ebx + 4]
add edx, dword [esp + 0x44]
mov ebx, dword [ebx + 8]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ebx
lea edx, [esi + 0x128]
mov ebx, edx
mov edx, dword [ebx]
mov dword [esp + 0x6c], edx
mov edx, dword [ebx + 4]
add edx, dword [esp + 0x44]
mov ebx, dword [ebx + 8]
mov dword [esp + 0x70], edx
mov edx, dword [0x10212de0]
mov dword [esp + 0x1c], edx
mov edx, dword [0x10212de4]
mov dword [esp + 0x20], edx
mov edx, dword [0x10212de8]
mov ecx, eax
shr ecx, 1
mov dword [esp + 0x24], edx
and eax, 0x1f0
and ecx, 7
cmp eax, 0x10
lea edx, [ebp + 3]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x58], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edi
push 0
jne 0x10139b0b
push 4
push 0
lea eax, [esp + 0x44]
push eax
push 0
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esi + 0x54]
lea edx, [esp + 0xa8]
push edx
call fcn.10140c40
mov ebx, dword [eax]
jmp 0x10139c00
cmp byte [esp + 0x1b], 0
je 0x10139c96
cmp ecx, 2
jne 0x10139b44
mov eax, dword [esi + 0x2b0]
mov ecx, dword [esp + eax*4 + 0x7c]
push 4
push ecx
mov ecx, dword [esi + 0x54]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x9c]
push eax
call fcn.101404c0
mov ebx, dword [eax]
jmp 0x10139c00
push 0x10212ea4
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esi + 0x54]
push 0x10
push 0x10212ec0
lea edx, [esp + 0x4c]
push edx
push 0
push 0x10212eb4
lea ebp, [esi + 0x284]
push ebp
lea eax, [esp + 0xb8]
push eax
call fcn.101ba740
mov ebx, dword [eax]
mov eax, dword [esp + 0xa8]
cmp eax, 3
jne 0x10139c5b
test bl, 1
je 0x10139bfc
push 0
push 0x10212ea4
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [esi + 0x54]
push 0x10
push 0x10212ed0
lea edx, [esp + 0x4c]
push edx
push 0
push 0x10212eb4
push ebp
lea eax, [esp + 0xc0]
push eax
call fcn.101ba9e0
mov ebx, dword [eax]
test bl, 1
je 0x10139bfc
push 0
push 0x10212ea4
lea ecx, [esp + 0x74]
push ecx
push 0x10
push 0x10212ee0
lea edx, [esp + 0x4c]
push edx
push 0
push 0x10212eb4
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xbc]
push ecx
mov ecx, dword [esi + 0x54]
call fcn.101ba9e0
mov ebx, dword [eax]
mov ebp, dword [esp + 0x18]
cmp edi, 4
jne 0x10139cb9
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0xe0]
add dword [esp + 0x44], 1
add ebp, 1
sub ecx, 3
xor edi, edi
cmp ebp, ecx
mov dword [esp + 0x18], ebp
jb 0x10139c57
test bl, 1
je 0x10139c47
mov ecx, dword [esi + 0x54]
push edi
push 1
push edi
push ebp
lea edx, [esi + 0x26c]
push edx
lea eax, [esp + 0x7c]
push eax
call fcn.101bbc20
mov ebx, dword [eax]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x18]
xor cl, cl
jmp 0x10139cc0
cmp eax, 2
jne 0x10139bfc
test bl, 1
je 0x10139bfc
push 0
push 0x10212ea4
lea edx, [esp + 0x64]
push edx
push 0x10
push 0x10212ed0
lea eax, [esp + 0x4c]
push eax
push 0
push 0x10212eb4
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0xa8]
push edx
jmp 0x10139bf2
push 4
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x54]
lea edx, [esp + 0x98]
push edx
call fcn.101404c0
mov ebx, dword [eax]
jmp 0x10139c00
mov edi, 4
mov cl, 1
mov eax, dword [esp + 0x4c]
add dword [esp + 0x34], 4
add eax, 1
cmp eax, dword [esi + 0x2a8]
mov dword [esp + 0x4c], eax
jb 0x10139a20
test cl, cl
je 0x10139ce3
add ebp, 1
test bl, 1
je 0x10139d20
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
mov ecx, dword [esi + 0x54]
push ebp
lea edx, [esi + 0x26c]
push edx
lea eax, [esp + 0x7c]
push eax
call fcn.101bbc20
mov eax, dword [eax]
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, ecx
pop ebx
add esp, 0x90
ret 8
mov eax, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
mov dword [eax], ebx
pop ebx
add esp, 0x90
ret 8