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

Disassembly:
sub esp, 0x1c0
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0xb8]
xor ebx, ebx
cmp ecx, ebx
jne 0x5b12dc
mov dword [esp + 0xc], ebx
jmp 0x5b12eb
mov eax, dword [esi + 0xbc]
sub eax, ecx
sar eax, 2
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x10], ecx
jle 0x5b1762
push ebp
push edi
mov edi, 0x3f800000
jmp 0x5b1310
mov eax, dword [esi + 0xb8]
lea ebp, [ecx*4]
mov edx, dword [eax + ebp]
add eax, ebp
cmp edx, ebx
je 0x5b174f
mov eax, dword [esi]
lea edx, [esp + 0xb8]
push edx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0xb8], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x78], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x3c], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xa4]
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [esp + 0x150]
push edx
push pe_nt_image_headers32
push eax
call dword [ecx + 0x98]
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [esp + 0x190]
push edx
push 2
push eax
call dword [ecx + 0x98]
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [esp + 0x110]
push edx
push 3
push eax
call dword [ecx + 0x98]
push 0x461c4000
push 0x3dcccccd
push 0x42c80000
push 0x42c80000
lea eax, [esp + 0xe0]
push eax
call fcn.0054274b
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [esp + 0xd0]
push edx
push 3
push eax
call dword [ecx + 0x94]
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [esp + 0x78]
push edx
push pe_nt_image_headers32
push eax
call dword [ecx + 0x94]
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push 2
push eax
call dword [ecx + 0x94]
mov eax, dword [esi + 0xb8]
add eax, ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0x3e4ccccd
mov ecx, dword [eax]
cmp byte [ecx + 0x140], bl
je 0x5b16f9
mov edx, ecx
cmp dword [edx + 0x27c], ebx
jle 0x5b1699
mov eax, edx
cmp dword [eax + 0x27c], ebx
mov dword [esp + 0x1c], ebx
jle 0x5b16f9
mov dword [esp + 0x10], ebx
jmp 0x5b14e0
push 0x461c4000
push 0x3dcccccd
push 0x42c80000
push 0x42c80000
lea ecx, [esp + 0xe0]
push ecx
call fcn.0054274b
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [esp + 0xd0]
push ecx
push 3
push eax
call dword [edx + 0x94]
mov eax, dword [esi]
lea ecx, [esp + 0x78]
push ecx
push pe_nt_image_headers32
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0xbc], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x40], edi
mov edx, dword [eax]
push eax
call dword [edx + 0x94]
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [esp + 0x38]
push ecx
push 2
push eax
call dword [edx + 0x94]
mov edx, dword [esi + 0xb8]
mov ecx, dword [edx + ebp]
lea eax, [edx + ebp]
mov edx, dword [ecx + 0x274]
mov ecx, dword [esp + 0x10]
mov edx, dword [edx + ecx + 0x138]
mov dword [esp + 0x20], edx
mov eax, dword [eax]
mov edx, dword [eax + 0x274]
mov eax, dword [edx + ecx + 0x13c]
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00540fbe
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 0xb8]
push ecx
mov ecx, dword [esp + 0x30]
push edx
add eax, ebp
push ecx
mov ecx, dword [eax]
call fcn.005a8380
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
add eax, 0x380
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xb8]
mov edx, dword [eax + ebp]
add eax, ebp
mov eax, dword [edx + 0x27c]
inc ecx
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jl 0x5b14e0
jmp 0x5b16f9
mov ecx, dword [eax]
mov edx, dword [ecx + 0x138]
mov dword [esp + 0x20], edx
mov eax, dword [eax]
mov ecx, dword [eax + 0x13c]
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xd8]
push ecx
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00540fbe
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0xb8]
push edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [eax + ebp]
add eax, ebp
push edx
call fcn.005a8380
mov eax, dword [esi + 0xb8]
mov ecx, dword [eax + ebp]
add eax, ebp
call fcn.005a7b30
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [esp + 0x110]
push edx
push 3
push eax
call dword [ecx + 0x94]
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [esp + 0x150]
push edx
push pe_nt_image_headers32
push eax
call dword [ecx + 0x94]
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [esp + 0x190]
push edx
push 2
push eax
call dword [ecx + 0x94]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
inc ecx
cmp ecx, eax
mov dword [esp + 0x18], ecx
jl 0x5b1310
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x1c0
ret