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

Disassembly:
push ebp
push ebx
sub esp, 0xb4
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc0]
movzx ecx, byte [esp + 0xcc]
mov dword [esp + 0x74], 0x550360
mov dword [esp + 0x38], edx
lea edx, [esp + 0x5c]
mov dword [esp + 0x40], eax
lea eax, [esp + 0xb0]
mov dword [esp], edx
mov byte [esp + 0x4b], cl
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], 0x55210c
mov dword [esp + 0x80], 0x515775
mov dword [esp + 0x84], esp
call fcn.004e2a90
mov edx, dword [esp + 0xc8]
mov ecx, dword [esp + 0x40]
movzx eax, byte [esp + 0x38]
mov dword [esp + 0x60], 0xffffffff
add edx, 0x6c
mov dword [esp], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], edx
mov byte [esp + 0x4a], al
call fcn.0054c2d0
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
lea ecx, [esp + 0x9b]
mov dword [esp + 0x2c], eax
call fcn.004f8af0
sub esp, 4
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xd0]
mov edx, dword [esp + 0x34]
mov eax, dword [eax]
movzx edx, byte [edx + 0x38]
cmp byte [eax], dl
mov dword [esp + 0x28], eax
je 0x515572
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x30]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0xa4], eax
mov eax, dword [ecx + 0x1c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x44], edx
mov dword [esp + 0x50], eax
mov ebx, dword [ecx - 0xc]
add ebx, dword [esp + 0x28]
cmp dword [esp + 0x28], ebx
jae 0x515529
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [eax + 0x18]
movzx eax, byte [edx]
test byte [ecx + eax*2], 8
je 0x515529
mov eax, dword [esp + 0x28]
lea esi, [esi]
add eax, 1
cmp eax, ebx
jne 0x515560
sub eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x515529
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x9c], 0x55b87c
mov dword [esp + 0x60], 1
add eax, eax
mov dword [esp], eax
call fcn.00523ab0
sub esp, 4
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x2c]
sub edx, eax
test edx, edx
mov dword [esp + 0x30], edx
jle 0x515322
test eax, eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
cmovns ecx, edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
test edx, edx
je 0x515676
mov eax, ecx
add eax, eax
mov dword [esp + 4], 0
lea ecx, [esp + 0x9c]
mov dword [esp], eax
mov dword [esp + 0x60], 1
call fcn.00522fe0
sub esp, 8
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x9c]
mov edx, dword [esp + 0x28]
add edx, dword [esp + 0x30]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 8]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x34]
movsx eax, byte [eax + 0x12]
mov dword [esp + 0x58], eax
call fcn.005234b0
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.005481c0
lea ecx, [esp + 0x9c]
mov dword [esp + 0x3c], eax
call fcn.005234b0
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x9c]
sub eax, dword [esp + 0x9c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call fcn.00522940
sub esp, 8
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x2c]
test eax, eax
jle 0x515379
mov ecx, dword [esp + 0x34]
movsx eax, byte [ecx + 0x11]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x60], 1
mov dword [esp], eax
call fcn.00523d20
sub esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
js 0x5156a8
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x9c]
mov eax, dword [edx + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00522a00
sub esp, 8
mov ecx, dword [esp + 0xc8]
mov eax, dword [ecx + 0xc]
mov edx, eax
and edx, 0xb0
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x9c]
mov edx, dword [edx - 0xc]
add edx, dword [esp + 0x44]
test ah, 2
jne 0x5155a5
xor eax, eax
add edx, eax
mov eax, edx
add eax, eax
mov dword [esp], eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0x3c], edx
mov dword [esp + 0xa0], 0x55b87c
mov dword [esp + 0x60], 2
call fcn.00523ab0
sub esp, 4
mov eax, dword [esp + 0xc8]
movsx edx, byte [esp + 0x4b]
mov dword [esp + 0x28], 1
mov eax, dword [eax + 8]
cmp dword [esp + 0x3c], eax
mov dword [esp + 0x54], edx
setb byte [esp + 0x30]
cmp dword [esp + 0x4c], 0x10
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
sete al
sub ecx, dword [esp + 0x3c]
and byte [esp + 0x30], al
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x28]
movsx eax, byte [esp + edx + 0xa3]
cmp eax, 4
ja case.default.0x51542c
jmp dword [eax*4 + 0x598814]
cmp dword [esp + 0x44], 1
jbe 0x515466
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
sub eax, 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
add eax, 1
mov dword [esp], eax
call fcn.00522a00
sub esp, 8
mov edx, dword [esp + 0xa0]
mov eax, dword [edx - 0xc]
cmp dword [esp + 0x2c], eax
jbe 0x5154bd
cmp dword [esp + 0x4c], 0x20
movsx edx, byte [esp + 0x4b]
je 0x5156f4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], edx
mov dword [esp], 0
mov dword [esp + 0x60], 2
sub ecx, eax
mov dword [esp + 4], ecx
lea ecx, [esp + 0xa0]
call fcn.00523320
sub esp, 0xc
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x2c]
movzx ecx, byte [esp + 0x4a]
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [esp + 0x60], 2
mov byte [esp + 0x38], cl
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xac], ecx
lea ecx, [esp + 0xa8]
call fcn.005407e0
sub esp, 8
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0xa0]
movzx edx, byte [esp + 0xac]
mov dword [esp + 0x30], eax
mov byte [esp + 0x4a], dl
call fcn.00524460
lea ecx, [esp + 0x9c]
call fcn.00524460
movzx eax, byte [esp + 0x4a]
mov ecx, dword [esp + 0xc8]
mov byte [esp + 0x38], al
lea eax, [esp + 0x5c]
mov dword [ecx + 8], 0
mov dword [esp], eax
call fcn.004e2b50
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
add esp, 0xb4
pop ebx
pop ebp
ret 0x14
movzx edx, byte [eax]
test byte [ecx + edx*2], 8
jne 0x5151d0
jmp 0x5151db
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x24]
mov dword [esp + 0xa4], eax
mov eax, dword [edx + 0x28]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x44], eax
mov ebx, dword [edx - 0xc]
test ebx, ebx
je 0x515529
add edx, 1
mov dword [esp + 0x28], edx
jmp 0x5151a0
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x18]
jmp 0x5153a8
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x515752
cmp dword [esp + 0x28], 4
jne 0x5155ec
jmp 0x515466
mov ecx, dword [esp + 0xc8]
test byte [ecx + 0xd], 2
jne 0x515728
cmp dword [esp + 0x28], 4
je 0x515433
add dword [esp + 0x28], 1
jmp 0x515417
lea eax, [esp + 0x9c]
mov dword [esp], eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
call fcn.00522b00
sub esp, 4
jmp case.default.0x51542c
cmp byte [esp + 0x30], 0
jne 0x51564b
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
mov dword [esp], eax
call fcn.00523d20
jmp 0x515614
cmp byte [esp + 0x30], 0
je case.default.0x51542c
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x60], 2
mov dword [esp], ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 4], edx
call fcn.00522c80
sub esp, 8
jmp case.default.0x51542c
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], 1
mov dword [esp + 4], ecx
lea ecx, [esp + 0x9c]
mov dword [esp], eax
call fcn.00522de0
sub esp, 8
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x2c]
jmp 0x515322
mov ecx, dword [esp + 0x34]
movsx eax, byte [ecx + 0x39]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x60], 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
neg eax
mov dword [esp], eax
call fcn.00522c80
sub esp, 8
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x9c]
mov edx, dword [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00522a00
jmp 0x515376
mov dword [esp + 4], edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
sub edx, eax
mov dword [esp], edx
call fcn.00522c80
sub esp, 8
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x2c]
jmp 0x5154bd
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0xa0]
mov eax, dword [edx + 0x18]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x14]
mov dword [esp + 0x60], 2
mov dword [esp], eax
call fcn.00522a00
jmp 0x51566e
mov ecx, dword [esp + 0x50]
movsx eax, byte [ecx]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
mov dword [esp], eax
call fcn.00523d20
jmp 0x515614