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

Disassembly:
mov eax, 0x24
call fcn.101fe2f0
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
mov eax, dword [esi + 0x18]
cmp eax, 3
ja case.0x101f56ae.2
jmp dword [eax*4 + 0x101f5c2c]
xor ebp, ebp
jmp 0x101f56c5
mov ebp, 1
jmp 0x101f56c5
mov ebp, 2
xor eax, eax
mov dword [esp + 0x3c], ebp
xor edi, edi
mov dword [esp + 0x1c], eax
cmp dword [ebx + ebp*8 + 0xdc], 0x40000000
mov eax, dword [esi + 0xac]
mov dword [esp + 0x10], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], 1
ja 0x101f5c17
jb 0x101f570b
cmp dword [ebx + ebp*8 + 0xd8], edi
jae 0x101f5c17
cmp dword [esi + 0x48], edi
jne 0x101f5c17
push dword [ebx + 0x50]
call fcn.101f1a30
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esi + 0x48], eax
test eax, eax
je 0x101f5c17
mov eax, dword [esp + 0x38]
test al, 8
je 0x101f579e
test byte [ebx + 0xf8], 1
je 0x101f579e
push esi
call fcn.101f52f0
add esp, 4
cmp eax, 1
jb 0x101f579a
push esi
call fcn.101f50d0
add esp, 4
test eax, eax
je 0x101f5c01
push eax
call fcn.101ec6e0
add esp, 4
push esi
test eax, eax
je 0x101f5792
mov eax, dword [esp + 0x18]
mov edi, 1
mov dword [esp + 0x14], edi
or dword [eax + 0x54], 1
call fcn.101f5160
add esp, 4
test eax, eax
je 0x101f5c01
or dword [esi + 0x1c], edi
jmp 0x101f579a
call fcn.101f5320
add esp, 4
mov eax, dword [esp + 0x38]
test eax, 0x200
je 0x101f596c
test byte [ebx + 0xf8], 2
lea ebp, [ebx + 0xf8]
jne 0x101f57d9
push 0
push dword [ebx + 0x64]
call fcn.101d54d0
add esp, 8
test eax, eax
je 0x101f584e
lea eax, [ebx + 0xf8]
mov dword [esp + 0x18], eax
jmp 0x101f57dd
mov dword [esp + 0x18], ebp
push esi
call fcn.101f52f0
add esp, 4
cmp eax, 2
jb 0x101f584e
push esi
call fcn.101f50d0
push dword [ebx + 0x64]
mov ebp, eax
call fcn.101d5470
add esp, 8
test ebp, ebp
je 0x101f5c01
push edx
push eax
push ebp
call fcn.101ec700
add esp, 0xc
push esi
test eax, eax
je 0x101f5842
mov eax, dword [esp + 0x18]
mov edi, 1
mov dword [esp + 0x14], edi
or dword [eax + 0x54], 2
call fcn.101f5160
add esp, 4
test eax, eax
je 0x101f5c01
or dword [esi + 0x1c], edi
lea ebp, [ebx + 0xf8]
jmp 0x101f584e
call fcn.101f5320
mov ebp, dword [esp + 0x1c]
add esp, 4
test byte [ebp], 4
jne 0x101f5865
push 0
push dword [ebx + 0x68]
call fcn.101d54d0
add esp, 8
test eax, eax
je 0x101f58ce
push esi
call fcn.101f52f0
add esp, 4
cmp eax, 2
jb 0x101f58ce
push esi
call fcn.101f50d0
push dword [ebx + 0x68]
mov ebp, eax
call fcn.101d5470
add esp, 8
test ebp, ebp
je 0x101f5c01
push edx
push eax
push 0
push ebp
call fcn.101ec790
add esp, 0x10
push esi
test eax, eax
je 0x101f58c6
mov eax, dword [esp + 0x18]
mov edi, 1
mov dword [esp + 0x14], edi
or dword [eax + 0x54], 4
call fcn.101f5160
add esp, 4
test eax, eax
je 0x101f5c01
or dword [esi + 0x1c], edi
jmp 0x101f58ce
call fcn.101f5320
add esp, 4
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
test eax, 0x200
je 0x101f596c
test byte [ebx + 0xf8], 8
jne 0x101f58fb
push 0
push dword [ebx + 0x6c]
call fcn.101d54d0
add esp, 8
test eax, eax
je 0x101f596c
push esi
call fcn.101f52f0
add esp, 4
cmp eax, 2
jb 0x101f596c
push esi
call fcn.101f50d0
push dword [ebx + 0x6c]
mov dword [esp + 0x2c], eax
call fcn.101d5470
mov ecx, eax
add esp, 8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x101f5c01
push edx
push ecx
push 1
push eax
call fcn.101ec790
add esp, 0x10
push esi
test eax, eax
je 0x101f5964
mov eax, dword [esp + 0x18]
mov edi, 1
mov dword [esp + 0x14], edi
or dword [eax + 0x54], 8
call fcn.101f5160
add esp, 4
test eax, eax
je 0x101f5c01
or dword [esi + 0x1c], edi
jmp 0x101f596c
call fcn.101f5320
add esp, 4
push ebp
push dword [ebx + 0x54]
call fcn.101ef940
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x101f5abf
push ebp
call fcn.101ef960
push ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], edx
call fcn.10075630
push ebp
mov dword [esp + 0x38], eax
call fcn.1004dac0
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov edx, eax
add edx, 0xfffffff9
adc ecx, 0xffffffff
test ecx, ecx
ja 0x101f5a2b
jb 0x101f59c2
cmp edx, 0x14
ja 0x101f5a2b
movzx eax, byte [eax + 0x101f5c49]
jmp dword [eax*4 + 0x101f5c3c]
test dword [esp + 0x38], 0x800
je 0x101f5aa1
test byte [esi + 0x1c], 1
je 0x101f5a3f
xor ecx, ecx
jmp 0x101f5a42
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 4]
sub eax, dword [esi + 8]
sub eax, ecx
mov ecx, dword [esp + 0x28]
cmp ecx, eax
ja 0x101f5ab8
push ecx
push dword [esp + 0x30]
push esi
call fcn.101f5070
add esp, 0xc
test eax, eax
je 0x101f5c01
push ebp
push dword [esp + 0x18]
call fcn.101f1a10
add esp, 8
cmp dword [esp + 0x24], 0
ja 0x101f5a95
mov eax, dword [esp + 0x18]
jb 0x101f5a87
cmp eax, 0x1d
ja 0x101f5a95
movzx eax, byte [eax + 0x101f5c70]
jmp dword [eax*4 + 0x101f5c68]
mov edi, 1
or dword [esi + 0x1c], edi
mov dword [esp + 0x10], edi
push dword [esp + 0x3c]
push ebp
call fcn.101ef970
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x101f5982
cmp dword [esp + 0x1c], 0
jne 0x101f5ad2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x44]
push esi
push ebx
call fcn.101f5c90
add esp, 0x10
mov eax, dword [esp + 0x38]
test al, 4
je 0x101f5af9
lea eax, [esp + 0x10]
push eax
push esi
push ebx
call fcn.101f53b0
add esp, 0xc
test eax, eax
je 0x101f5c01
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
test eax, 0x100
je 0x101f5b2b
test dword [ebx + 0xf8], 0x800
je 0x101f5b2b
lea eax, [esi + 0x4c]
push eax
lea eax, [esp + 0x14]
push eax
push esi
push ebx
call fcn.101f6510
add esp, 0x10
test eax, eax
je 0x101f5c01
mov edi, dword [esp + 0x10]
or dword [esi + 0x1c], 1
test edi, edi
jne 0x101f5b85
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x40]
push ebx
call fcn.101f68e0
add esp, 0xc
test eax, eax
je 0x101f5c21
push esi
call fcn.101f50d0
add esp, 4
test eax, eax
je 0x101f5c01
push eax
call fcn.101ec810
add esp, 4
test eax, eax
je 0x101f5c01
push esi
call fcn.101f5160
add esp, 4
test eax, eax
je 0x101f5c01
mov edi, 1
xor edx, edx
mov eax, dword [esi + 0xa4]
add eax, dword [esi + 8]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x38], 4
mov dword [ebp + 8], eax
mov eax, dword [ebx + ecx*8 + 0xd8]
mov ecx, dword [ebx + ecx*8 + 0xdc]
mov dword [ebp + 4], ecx
mov ecx, dword [ebp + 0x20]
and ecx, 0xfffffffc
mov dword [ebp], eax
or ecx, dword [esp + 0x3c]
xor eax, eax
and ecx, 0xfffffffb
test edx, edx
cmove eax, dword [esp + 0x38]
and edi, 1
or ecx, eax
shl edi, 3
and ecx, 0xffffffc7
or ecx, edi
mov dword [ebp + 0x20], ecx
push dword [ebx + 0x7c]
mov eax, dword [ebx + 0x78]
call eax
add esp, 4
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], edx
mov al, byte [esi + 0x50]
mov byte [ebp + 0x50], al
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push dword [esp + 0x14]
push dword [ebx + 0x50]
call fcn.101f1bb0
add esp, 8
mov dword [esi + 0x48], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x20]
jmp 0x101f5b87