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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, dword [esp + 0x60]
push edi
xor ebp, ebp
push esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ebp
call fcn.10100ed0
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x10100bee
mov eax, dword [esi + 0x44]
cmp eax, ebp
mov dword [esp + 0x64], eax
jne 0x1010096f
lea eax, [esp + 0x40]
push 0x377f0682
push eax
call fcn.100fe200
lea ecx, [esp + 0x4c]
push 0x2de218
push ecx
call fcn.100fe200
mov edi, dword [esp + 0x78]
lea edx, [esp + 0x58]
push edi
push edx
call fcn.100fe200
mov eax, dword [esi + 0x68]
lea ecx, [esp + 0x64]
push eax
push ecx
call fcn.100fe200
mov eax, dword [esi + 0x68]
add esp, 0x20
cmp eax, ebp
jne 0x101008ca
lea edx, [esi + 0x54]
push edx
push 8
call fcn.100f8de0
add esp, 8
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x58]
lea edx, [esp + 0x14]
mov dword [esp + 0x50], eax
push edx
push ebp
lea eax, [esp + 0x48]
push 0x18
push eax
push 1
mov dword [esp + 0x68], ecx
call fcn.10100c00
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x6c]
push ecx
push edx
call fcn.100fe200
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x78]
push eax
push ecx
call fcn.100fe200
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
push ebp
mov dword [esi + 0x4c], edx
mov edx, dword [esi + 8]
push ebp
lea ecx, [esp + 0x6c]
push 0x20
push ecx
push edx
mov dword [esi + 0x24], edi
mov byte [esi + 0x41], 0
mov dword [esi + 0x50], eax
mov byte [esi + 0x2f], 1
call fcn.100fcf10
mov ebx, eax
add esp, 0x38
cmp ebx, ebp
jne 0x10100bee
mov al, byte [esi + 0x30]
test al, al
je 0x10100973
mov eax, dword [esp + 0x78]
cmp eax, ebp
je 0x10100973
and eax, 0x13
push eax
mov eax, dword [esi + 8]
push eax
call fcn.100fdb10
mov ebx, eax
add esp, 8
cmp ebx, ebp
je 0x10100973
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x78]
mov ecx, dword [esi + 8]
lea eax, [edi + 0x18]
mov dword [esp + 0x38], edx
cdq
push edx
mov dword [esp + 0x24], eax
push eax
mov eax, dword [esp + 0x6c]
push ebp
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x34], edx
call fcn.10146660
mov ebp, eax
mov eax, dword [esp + 0x6c]
mov edi, edx
add ebp, 0x20
adc edi, 0
mov dword [esp + 0x14], eax
test eax, eax
je 0x10100a21
jmp 0x101009c7
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x74]
inc edx
test ecx, ecx
mov dword [esp + 0x64], edx
je 0x101009e5
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x101009e5
mov ecx, dword [esp + 0x70]
jmp 0x101009e7
xor ecx, ecx
push edi
push ebp
push ecx
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.10101870
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10100bee
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
lea eax, [edx + 0x18]
cdq
add ebp, eax
mov eax, dword [ecx + 0xc]
adc edi, edx
mov dword [esp + 0x14], eax
test eax, eax
jne 0x101009c3
mov eax, dword [esp + 0x74]
test eax, eax
je 0x10100b54
mov eax, dword [esp + 0x78]
test al, 0x20
je 0x10100af2
mov cl, byte [esi + 0x31]
test cl, cl
je 0x10100adf
mov eax, dword [esi + 8]
push eax
call fcn.100ffd50
cdq
add esp, 4
mov dword [esp + 0x14], eax
add eax, ebp
mov ecx, edx
adc ecx, edi
mov dword [esp + 0x18], edx
sub eax, 1
push edx
mov edx, dword [esp + 0x18]
sbb ecx, 0
push edx
push ecx
push eax
call fcn.101465b0
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push edx
push eax
call fcn.10146660
cmp edi, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
jg 0x10100af2
jl 0x10100a95
cmp ebp, eax
jae 0x10100af2
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x1c]
push edi
push ebp
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.10101870
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10100bee
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x10]
lea eax, [edx + 0x18]
cdq
add ebp, eax
mov eax, dword [esp + 0x34]
adc edi, edx
inc ecx
cmp edi, eax
mov dword [esp + 0x10], ecx
jl 0x10100a95
jg 0x10100af2
cmp ebp, dword [esp + 0x30]
jb 0x10100a95
jmp 0x10100af2
and eax, 0x13
push eax
mov eax, dword [esp + 0x30]
push eax
call fcn.100fdb10
add esp, 8
mov ebx, eax
mov al, byte [esi + 0x2f]
test al, al
je 0x10100b54
mov edi, dword [esi + 0x14]
mov ebp, dword [esi + 0x10]
test edi, edi
jl 0x10100b54
jg 0x10100b09
test ebp, ebp
jb 0x10100b54
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add ecx, edx
mov edx, dword [esp + 0x20]
push eax
push edx
push 0
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edi
call fcn.10146660
add eax, 0x20
adc edx, 0
cmp edx, edi
jl 0x10100b3d
jg 0x10100b45
cmp eax, ebp
ja 0x10100b45
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
push esi
call fcn.10100e60
add esp, 0xc
mov byte [esi + 0x2f], 0
mov ebp, dword [esp + 0x6c]
mov edi, dword [esi + 0x44]
test ebp, ebp
je 0x10100b7f
test ebx, ebx
jne 0x10100bee
mov eax, dword [ebp + 0x14]
inc edi
push eax
push edi
push esi
call fcn.10100d60
mov ebp, dword [ebp + 0xc]
add esp, 0xc
test ebp, ebp
mov ebx, eax
jne 0x10100b5f
test ebx, ebx
jne 0x10100bee
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x10100bb1
mov ecx, dword [esp + 0x1c]
inc edi
dec eax
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x10], eax
push edx
push edi
push esi
call fcn.10100d60
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10100b83
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
test ebx, ebx
jne 0x10100bee
mov eax, dword [esp + 0x68]
mov dword [esi + 0x44], edi
mov ecx, eax
and eax, 0xff00
sar ecx, 0x10
or ecx, eax
mov eax, dword [esp + 0x74]
test eax, eax
mov word [esi + 0x42], cx
je 0x10100bee
mov edx, dword [esi + 0x3c]
push esi
inc edx
mov dword [esi + 0x3c], edx
mov edx, dword [esp + 0x74]
mov dword [esi + 0x48], edx
call fcn.10100cd0
add esp, 4
mov dword [esi + 0xc], edi
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x50
ret