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

Disassembly:
sub esp, 0x6c
push ebp
mov ebp, dword [esp + 0x7c]
push esi
mov esi, dword [esp + 0x78]
lea eax, [esp + 0xc]
push eax
add esi, 0x190
push esi
mov dword [ebp], 0
call fcn.100a7180
add esp, 8
test eax, eax
je 0x10051f97
pop esi
mov eax, 1
pop ebp
add esp, 0x6c
ret
mov eax, dword [esp + 0xc]
test eax, eax
push ebx
push edi
jle 0x1005225e
lea ecx, [esp + 0x88]
push ecx
push 0
push esi
call fcn.100a7160
add esp, 0xc
test eax, eax
je 0x10051fc9
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x6c
ret
mov eax, dword [esp + 0x14]
mov ebx, 1
cmp eax, ebx
mov edi, ebx
jle 0x1005220c
lea esp, [esp]
lea edx, [esp + 0x80]
push edx
push edi
push esi
call fcn.100a7160
add esp, 0xc
test eax, eax
jne 0x1005224b
mov edx, dword [esp + 0x88]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
call fcn.100c7b50
add esp, 0xc
test eax, eax
jne 0x1005224b
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.100c7b50
add esp, 0xc
test eax, eax
jne 0x1005224b
mov eax, dword [esp + 0x18]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x10052061
test eax, eax
jne 0x1005206e
mov eax, dword [esp + 0x80]
mov dword [esp + 0x88], eax
jmp 0x100521ff
test eax, eax
je 0x10052110
jmp 0x100521ff
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x5c]
push ecx
push edx
call fcn.10032360
add esp, 0x14
test eax, eax
jne 0x1005224b
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x64]
push eax
push ecx
call fcn.10032360
add esp, 0x14
test eax, eax
jne 0x1005224b
mov ecx, dword [esp + 0x2c]
test ecx, ecx
mov eax, dword [esp + 0x30]
jle 0x100520d5
test eax, eax
jne 0x100520d7
jmp 0x100521f1
test eax, eax
jle 0x100520e1
test ecx, ecx
je 0x100521ff
mov ecx, dword [esp + 0x34]
test ecx, ecx
mov eax, dword [esp + 0x38]
jle 0x10052104
test eax, eax
jne 0x10052106
mov eax, dword [esp + 0x80]
mov dword [esp + 0x88], eax
jmp 0x100521ff
test eax, eax
jle 0x10052110
test ecx, ecx
je 0x100521ff
mov edx, dword [esp + 0x88]
lea ecx, [esp + 0x3c]
push ecx
push edx
call fcn.100c7c10
add esp, 8
test eax, eax
jne 0x1005224b
mov eax, dword [esp + 0x3c]
cmp eax, 0xa
je 0x10052176
cmp eax, 0xc
jne 0x10052143
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10052176
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x6c]
push edx
mov edx, dword [esp + 0x94]
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
call fcn.100c6920
add esp, 0x18
test eax, eax
jne 0x1005224b
jmp 0x1005217a
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x40]
push eax
push ecx
call fcn.100c7c10
add esp, 8
test eax, eax
jne 0x1005224b
mov eax, dword [esp + 0x40]
cmp eax, 0xa
je 0x10052255
cmp eax, 0xc
jne 0x100521b5
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x10052255
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x8c]
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.100c6920
add esp, 0x18
test eax, eax
jne 0x1005224b
cmp dword [esp + 0x1c], ebx
jne 0x100521ff
cmp dword [esp + 0x20], ebx
je 0x100521ff
mov edx, dword [esp + 0x80]
mov dword [esp + 0x88], edx
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x10051fe0
mov edx, dword [esp + 0x88]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x4c]
push ecx
push edx
call fcn.100c7b50
add esp, 0xc
test eax, eax
jne 0x1005224b
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1005225e
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x48]
push eax
push ecx
call fcn.10032020
add esp, 8
test eax, eax
je 0x1005225b
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
add esp, 0x6c
ret
mov dword [esp + 0x1c], ebx
jmp 0x100521eb
mov dword [ebp], ebx
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x6c
ret