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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5150b7
sub esp, 0x50
mov edx, dword [esp + 0x54]
cmp edx, 2
jne 0x514d85
mov edx, dword [esp + 0x5c]
test edx, edx
jne 0x514d74
mov edx, dword [0x7835c0]
mov ebx, dword [0x7835c4]
mov ebp, dword [0x7835c8]
cmp ebx, 4
je 0x514d6b
cmp ebx, 0x10
jne 0x514c40
xor eax, eax
jmp 0x514c27
inc eax
cmp eax, 0xa
jge 0x514d4a
jae 0x5150ac
movzx esi, byte [edx + eax]
xchg esi, eax
test al, al
xchg esi, eax
je 0x514c26
xor eax, eax
xor ecx, ecx
test eax, eax
je 0x514cbd
mov dword [esp + 0x24], ecx
mov dword [esp + 0x48], eax
lea eax, [0x5f26c0]
mov dword [esp], eax
call fcn.0040b8d0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x64]
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
cmp ecx, 4
jge 0x514cb6
mov dword [esp + 0x3c], eax
lea edx, [eax + 4]
mov ebx, dword [esp + 0x48]
cmp edx, ebx
je 0x514c90
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.0045e7b0
lea eax, [0x65ebe0]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x50
ret
mov ecx, 4
jmp 0x514c71
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call fcn.00510160
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
lea edx, [0x5ea500]
mov dword [esp], edx
call fcn.0040b8d0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x10
lea ecx, [0x612703]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x7a0970]
test ecx, ecx
jne 0x514d38
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
lea ecx, [0x65ea00]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x50
ret
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x4c]
call fcn.0045de10
mov eax, ecx
jmp 0x514d16
cmp byte [edx + 0xa], 0xff
jne 0x514c40
cmp byte [edx + 0xb], 0xff
jne 0x514c40
lea eax, [edx + 0xc]
mov ecx, 4
jmp 0x514c44
mov eax, edx
mov ecx, ebx
jmp 0x514c44
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x60]
jmp 0x514c14
cmp edx, 0x17
jne 0x515013
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x514fbf
mov eax, dword [0x77d780]
mov ecx, dword [0x77d784]
mov edx, dword [0x77d788]
mov dword [esp + 0x60], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
cmp ecx, 4
jne 0x514fad
movzx ebx, byte [eax]
movzx ebp, byte [eax + 1]
movzx esi, byte [eax + 2]
movzx edi, byte [eax + 3]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov edx, dword [0x77d790]
mov ecx, dword [0x77d794]
cmp ecx, 0x10
jge 0x514fa3
mov byte [esp + 0x1f], bl
xchg ebp, eax
mov byte [esp + 0x1e], al
xchg ebp, eax
xchg esi, eax
mov byte [esp + 0x1d], al
xchg esi, eax
xchg edi, eax
mov byte [esp + 0x1c], al
xchg edi, eax
lea eax, [esp + 0x2c]
cmp edx, eax
je 0x514e33
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0045e7b0
movzx edx, byte [esp + 0x1f]
mov byte [esp + 0x38], dl
movzx edx, byte [esp + 0x1e]
mov byte [esp + 0x39], dl
movzx edx, byte [esp + 0x1d]
mov byte [esp + 0x3a], dl
movzx edx, byte [esp + 0x1c]
mov byte [esp + 0x3b], dl
lea eax, [esp + 0x2c]
mov ecx, 0x10
test eax, eax
je 0x514f0a
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], ecx
lea eax, [0x783a60]
mov dword [esp], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
call fcn.0050f520
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], eax
lea ecx, [0x5f5000]
mov dword [esp], ecx
call fcn.0040b8d0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x64]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
cmp ecx, 0x10
jge 0x514f03
mov dword [esp + 0x40], eax
lea edx, [eax + 8]
mov ebx, dword [esp + 0x44]
cmp ebx, edx
je 0x514edd
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.0045e7b0
lea eax, [0x65ebf4]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x50
ret
mov ecx, 0x10
jmp 0x514ebe
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 8], eax
call fcn.00510160
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
lea edx, [0x5ea500]
mov dword [esp], edx
call fcn.0040b8d0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x10
lea ecx, [0x612713]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x7a0970]
test ecx, ecx
jne 0x514f91
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
lea ecx, [0x65ea00]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x50
ret
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x4c]
call fcn.0045de10
mov eax, ecx
jmp 0x514f6f
mov ecx, 0x10
jmp 0x514e05
cmp ecx, 0x10
je 0x514e60
xor eax, eax
xor ecx, ecx
jmp 0x514e60
mov ecx, dword [0x7835c0]
mov edx, dword [0x7835c4]
mov ebx, dword [0x7835c8]
mov ebp, dword [esp + 0x58]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov esi, dword [esp + 0x60]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
call fcn.00510d10
movzx eax, byte [esp + 0x18]
test al, al
jne 0x514d9a
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
jmp 0x514dac
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 8], eax
call fcn.00510160
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
lea edx, [0x5ea500]
mov dword [esp], edx
call fcn.0040b8d0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x16
lea ecx, [0x614c5c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x7a0970]
test ecx, ecx
jne 0x51509a
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
lea ecx, [0x65ea00]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
add esp, 0x50
ret
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x4c]
call fcn.0045de10
mov eax, ecx
jmp 0x515078
mov ecx, 0xa
call fcn.0045de90
nop
call fcn.0045c8b0
jmp fcn.00514bd0