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

Disassembly:
push 0xffffffffffffffff
push 0x5e194a
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0xcc]
mov dword fs:[0], eax
cmp dword [esp + 0xe8], 2
mov ebp, dword [esp + 0xdc]
mov ebx, dword [esp + 0xe0]
mov edi, ecx
jne 0x5388a1
lea ecx, [esp + 0x40]
call fcn.004f6ca0
mov ecx, dword [edi + 8]
xor esi, esi
push ebp
mov dword [esp + 0xd8], esi
call fcn.0058df00
mov ecx, dword [edi + 8]
lea eax, [esp + 0x40]
push eax
call fcn.00564a60
lea ecx, [esp + 0x28]
call fcn.004f6ca0
lea ecx, [esp + 0x14]
mov byte [esp + 0xd4], 1
call fcn.004f6ca0
cmp dword [esp + 0x40], esi
mov byte [esp + 0xd4], 2
jle 0x538648
mov edx, dword [esp + 0x48]
mov eax, dword [edx + esi*4]
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, edi
call fcn.00537350
inc esi
cmp esi, dword [esp + 0x40]
jl 0x538629
test byte [ebp + 0x2c], 1
je 0x538807
mov esi, dword [esp + 0xe4]
xor edi, edi
cmp dword [esp + 0x14], edi
jle 0x538689
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + edi*4]
push esi
lea eax, [esp + 0x2c]
push edx
push eax
test esi, esi
jle 0x53867a
call fcn.005734a0
jmp 0x53867f
call fcn.005733f0
inc edi
add esp, 0xc
cmp edi, dword [esp + 0x14]
jl 0x538661
push ebp
lea ecx, [esp + 0x8c]
call fcn.004f9140
mov eax, dword [ebp + 0x30]
lea ecx, [eax + eax]
mov dword [esp + 0x98], ecx
lea ecx, [esp + 0x78]
mov byte [esp + 0xd4], 3
call fcn.004fbc90
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd8], 4
call fcn.004f88e0
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x50]
call fcn.005121f0
lea ecx, [esp + 0x34]
mov byte [esp + 0xd4], 5
call fcn.004f6ca0
mov byte [esp + 0xd4], 6
push esi
test esi, esi
jle 0x53870a
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.005733f0
jmp 0x538719
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.005734a0
xor esi, esi
add esp, 0xc
cmp dword [esp + 0x34], esi
jle 0x53873d
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + esi*4]
push ebx
lea edx, [esp + 0x2c]
push edx
call fcn.00512780
inc esi
cmp esi, dword [esp + 0x34]
jl 0x538724
mov ebp, dword [ebp + 0x34]
xor esi, esi
cmp dword [ebx], esi
jle 0x5387be
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + esi*4]
mov dword [eax + 0xc], ebp
mov edx, dword [ebx + 8]
mov eax, dword [edx + esi*4]
test eax, eax
je 0x53875e
add eax, 0x14
jmp 0x538760
xor eax, eax
push eax
lea ecx, [esp + 0x24]
call fcn.005b83f0
mov eax, dword [esp + 0x24]
mov byte [esp + 0xd4], 7
test eax, eax
je 0x53879b
add eax, 0xffffffec
mov dword [eax + 0xc], ebp
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp eax, dword [ecx]
jne 0x538790
xor eax, eax
jmp 0x538793
mov eax, dword [eax + 0xc]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x53877a
mov edx, dword [ebx + 8]
mov ecx, dword [edx + esi*4]
push 0
call fcn.0058dea0
lea ecx, [esp + 0x20]
mov byte [esp + 0xd4], 6
call fcn.0045c490
inc esi
cmp esi, dword [ebx]
jl 0x538746
lea ecx, [esp + 0x34]
mov byte [esp + 0xd4], 5
call fcn.00467410
lea ecx, [esp + 0x4c]
mov byte [esp + 0xd4], 4
call fcn.00514dd0
lea ecx, [esp + 0x78]
mov byte [esp + 0xd4], 3
call fcn.004fc5f0
lea ecx, [esp + 0x88]
mov byte [esp + 0xd4], 2
call fcn.004f94c0
jmp 0x53884c
xor esi, esi
cmp dword [esp + 0x14], esi
jle 0x53883e
mov edi, dword [esp + 0xe4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + esi*4]
push edi
lea edx, [esp + 0x2c]
push ecx
push edx
test edi, edi
jle 0x53882f
call fcn.005733f0
jmp 0x538834
call fcn.005734a0
inc esi
add esp, 0xc
cmp esi, dword [esp + 0x14]
jl 0x538816
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.00512760
add esp, 8
lea ecx, [esp + 0x14]
call fcn.004f6cf0
lea ecx, [esp + 0x28]
call fcn.004f6cf0
lea ecx, [esp + 0x40]
call fcn.004f6cf0
mov esi, dword [ebx]
lea ecx, [esp + 0x14]
mov byte [esp + 0xd4], 1
call fcn.00467410
lea ecx, [esp + 0x28]
mov byte [esp + 0xd4], 0
call fcn.00467410
lea ecx, [esp + 0x40]
mov dword [esp + 0xd4], 0xffffffff
call fcn.00467410
jmp 0x5388ef
lea ecx, [esp + 0x78]
call fcn.004fbc90
lea ecx, [esp + 0x78]
push ecx
mov ecx, ebp
mov dword [esp + 0xd8], 8
call fcn.004f88e0
mov edx, dword [esp + 0xe4]
push edx
push ebx
lea eax, [esp + 0x80]
push eax
mov ecx, edi
call fcn.00536b80
lea ecx, [esp + 0x78]
mov esi, eax
mov dword [esp + 0xd4], 0xffffffff
call fcn.004fc5f0
mov eax, esi
mov ecx, dword [esp + 0xcc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.005bd2c6
add esp, 0xc4
ret 0x10