Function at 0x515190
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], 0x54fd30
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], 0x551ae4
mov dword [esp + 0x80], 0x515855
mov dword [esp + 0x84], esp
call fcn.004e2460
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.0054bca0
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
lea ecx, [esp + 0x9b]
mov dword [esp + 0x2c], eax
call fcn.004f8630
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 0x515652
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 0x515609
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 0x515609
mov eax, dword [esp + 0x28]
lea esi, [esi]
add eax, 1
cmp eax, ebx
jne 0x515640
sub eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x515609
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.00523480
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 0x515402
test eax, eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + 0xc]
cmovns ecx, edx
mov dword [esp + 0x30], ecx
test eax, eax
je 0x515756
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.005229b0
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.00522e80
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.00547b90
lea ecx, [esp + 0x9c]
mov dword [esp + 0x3c], eax
call fcn.00522e80
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.00522310
sub esp, 8
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x2c]
test eax, eax
jle 0x515459
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.005236f0
sub esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
js 0x515788
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.005223d0
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 0x515685
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.00523480
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.0x51550c
jmp dword [eax*4 + 0x598808]
cmp dword [esp + 0x44], 1
jbe 0x515546
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.005223d0
sub esp, 8
mov edx, dword [esp + 0xa0]
mov eax, dword [edx - 0xc]
cmp dword [esp + 0x2c], eax
jbe 0x51559d
cmp dword [esp + 0x4c], 0x20
movsx edx, byte [esp + 0x4b]
je 0x5157d4
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.00522cf0
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.005401b0
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.00523e30
lea ecx, [esp + 0x9c]
call fcn.00523e30
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.004e2520
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 0x5152b0
jmp 0x5152bb
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 0x515609
add edx, 1
mov dword [esp + 0x28], edx
jmp 0x515280
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x18]
jmp 0x515488
mov ebx, dword [esp + 0x44]
test ebx, ebx
jne 0x515832
cmp dword [esp + 0x28], 4
jne 0x5156cc
jmp 0x515546
mov ecx, dword [esp + 0xc8]
test byte [ecx + 0xd], 2
jne 0x515808
cmp dword [esp + 0x28], 4
je 0x515513
add dword [esp + 0x28], 1
jmp 0x5154f7
lea eax, [esp + 0x9c]
mov dword [esp], eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
call fcn.005224d0
sub esp, 4
jmp case.default.0x51550c
cmp byte [esp + 0x30], 0
jne 0x51572b
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
mov dword [esp], eax
call fcn.005236f0
jmp 0x5156f4
cmp byte [esp + 0x30], 0
je case.default.0x51550c
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.00522650
sub esp, 8
jmp case.default.0x51550c
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.005227b0
sub esp, 8
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x2c]
jmp 0x515402
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.00522650
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.005223d0
jmp 0x515456
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.00522650
sub esp, 8
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x2c]
jmp 0x51559d
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.005223d0
jmp 0x51574e
mov ecx, dword [esp + 0x50]
movsx eax, byte [ecx]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x60], 2
mov dword [esp], eax
call fcn.005236f0
jmp 0x5156f4