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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x50975c
sub esp, 0x7c
mov ecx, dword [esp + 0x90]
cmp ecx, 2
jne 0x509206
mov ebx, dword [esp + 0x8c]
cmp word [ebx], 0x7069
je 0x50923c
jmp 0x509713
cmp ecx, 3
jne 0x50927e
mov ebx, dword [esp + 0x8c]
cmp byte [ebx], 0x69
jg 0x50925b
movzx ebp, word [ebx]
cmp bp, 0x7069
jne 0x50922c
cmp byte [ebx + 2], 0x34
je 0x50923c
cmp bp, 0x7069
jne 0x509713
cmp byte [ebx + 2], 0x36
jne 0x509713
mov ebp, dword [esp + 0x98]
test ebp, ebp
je 0x509250
mov eax, dword [esp + 0x94]
jmp 0x509254
xor ebp, ebp
xor eax, eax
xor edx, edx
jmp 0x50937c
cmp word [ebx], 0x6374
jne 0x509268
cmp byte [ebx + 2], 0x70
je 0x5092bc
cmp word [ebx], 0x6475
jne 0x509713
cmp byte [ebx + 2], 0x70
je 0x5092bc
jmp 0x509713
cmp ecx, 4
jne 0x50970c
mov ebx, dword [esp + 0x8c]
cmp byte [ebx], 0x74
jg 0x5092a8
cmp dword [ebx], 0x34706374
je 0x5092bc
cmp dword [ebx], 0x36706374
je 0x5092bc
jmp 0x509713
cmp dword [ebx], 0x34706475
je 0x5092bc
cmp dword [ebx], 0x36706475
jne 0x509713
mov ebp, dword [esp + 0x98]
test ebp, ebp
jne 0x5092d2
xor eax, eax
xor edx, edx
xor ebp, ebp
jmp 0x509374
mov eax, dword [esp + 0x94]
mov dword [esp], eax
mov dword [esp + 4], ebp
call fcn.00508bb0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x5096d5
mov dword [esp + 0x38], edx
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x80]
mov dword [esp], edx
mov ebx, dword [esp + 0x84]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x88]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x8c]
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x90]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call fcn.0050b630
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x50969e
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x90]
mov eax, ebx
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x8c]
mov esi, edx
mov edx, eax
mov eax, ebp
mov ebp, esi
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
lea esi, [0x509770]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x78], edx
test ebp, ebp
jne 0x509443
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x40], ecx
lea edi, [esp]
xor eax, eax
call fcn.004773db
lea edx, [esp + 0x6c]
mov ecx, dword [esp + 0x40]
call ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x40], ecx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x54], ebx
lea ebp, [0x6be540]
mov dword [esp], ebp
call fcn.0040dea0
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 0x40]
mov dword [ecx], ebx
mov ebx, dword [0x8c88d8]
test ebx, ebx
jne 0x5093fe
mov eax, dword [esp + 0x54]
jmp 0x509409
call fcn.004772e0
mov eax, dword [esp + 0x54]
mov dword [edi], eax
mov dword [ecx + 4], eax
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], 1
mov dword [esp + 0xa4], 1
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
add esp, 0x7c
ret
mov dword [esp + 0x38], ebp
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x80]
mov dword [esp], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
call fcn.0050aa40
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
test eax, eax
jne 0x509667
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
cmp edx, 1
je 0x5094a5
xor eax, eax
jmp 0x5094f4
mov dword [esp + 0x30], edx
mov dword [esp + 0x44], ebx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ebp, dword [0x8a1f00]
mov esi, dword [0x8a1f04]
mov edi, dword [0x8a1f08]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
call fcn.00506f10
movzx eax, byte [esp + 0x18]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x44]
test al, al
je 0x5095ba
lea edi, [esp + 0x58]
xor eax, eax
call fcn.004773db
lea ecx, [edx + 1]
mov edx, dword [0x8a77e8]
mov ebp, dword [0x8a77ec]
mov eax, dword [0x8a77f0]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x34]
cmp edx, ecx
jae 0x509560
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x6d4660]
mov dword [esp + 0x10], eax
call fcn.00472770
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, eax
mov dword [esp + 0x30], ecx
mov eax, dword [0x8c88d8]
lea ebp, [ecx + ecx*4]
lea edi, [ebx + ebp*4 - 0x14]
test eax, eax
je 0x5095ab
mov dword [esp + 0x50], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x4c], edi
lea eax, [0x6d4660]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
call fcn.004120e0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
lea esi, [esp + 0x58]
call fcn.004778be
mov ecx, edx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x90]
test eax, eax
je 0x5095e3
mov ebp, dword [esp + 0x8c]
lea esi, [eax + ebp - 1]
cmp byte [esi], 0x34
jne 0x5095df
test eax, eax
lea esi, [0x7204f4]
jmp 0x5095ef
test eax, eax
jmp 0x5095ea
mov ebp, dword [esp + 0x8c]
mov esi, 0
je 0x509600
lea eax, [eax + ebp - 1]
cmp byte [eax], 0x36
jne 0x509600
lea esi, [0x7204f8]
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
lea eax, [esp + 0x6c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
call fcn.005088c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], ebp
add esp, 0x7c
ret
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
add esp, 0x7c
ret
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
add esp, 0x7c
ret
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
add esp, 0x7c
ret
mov ebx, dword [esp + 0x8c]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.0046b860
mov eax, dword [esp + 8]
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
lea ecx, [0x734920]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
add esp, 0x7c
ret
call fcn.00475ee0
jmp fcn.005091d0