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

Disassembly:
mov ecx, dword [0x95eda0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x514aa9
add esp, 0xffffff80
mov ecx, dword [esp + 0x94]
cmp ecx, 2
jne 0x514346
mov edx, dword [esp + 0x90]
cmp word [edx], 0x7069
je 0x51437c
jmp 0x514a0f
cmp ecx, 3
jne 0x5143be
mov edx, dword [esp + 0x90]
cmp byte [edx], 0x69
jg 0x51439b
movzx ebx, word [edx]
cmp bx, 0x7069
jne 0x51436c
cmp byte [edx + 2], 0x34
je 0x51437c
cmp bx, 0x7069
jne 0x514a0f
cmp byte [edx + 2], 0x36
jne 0x514a0f
mov ebx, dword [esp + 0x9c]
test ebx, ebx
je 0x514390
mov eax, dword [esp + 0x98]
jmp 0x514394
xor ebx, ebx
xor eax, eax
xor ebp, ebp
jmp 0x5144ba
cmp word [edx], 0x6374
jne 0x5143a8
cmp byte [edx + 2], 0x70
je 0x5143fc
cmp word [edx], 0x6475
jne 0x514a0f
cmp byte [edx + 2], 0x70
je 0x5143fc
jmp 0x514a0f
cmp ecx, 4
jne 0x514a08
mov edx, dword [esp + 0x90]
cmp byte [edx], 0x74
jg 0x5143e8
cmp dword [edx], 0x34706374
je 0x5143fc
cmp dword [edx], 0x36706374
je 0x5143fc
jmp 0x514a0f
cmp dword [edx], 0x34706475
je 0x5143fc
cmp dword [edx], 0x36706475
jne 0x514a0f
mov ebx, dword [esp + 0x9c]
test ebx, ebx
jne 0x514412
xor ebx, ebx
xor eax, eax
xor ebp, ebp
jmp 0x5144b2
mov eax, dword [esp + 0x98]
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.00513d20
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x5149d1
mov dword [esp + 0x40], edx
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x84]
mov dword [esp], edx
mov ebx, dword [esp + 0x88]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x8c]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x90]
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x94]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call fcn.00516a20
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x51499a
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x50]
mov esi, ebp
mov ebp, ebx
mov ebx, eax
mov eax, esi
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
lea esi, [0x514ac0]
mov dword [esp + 0x70], esi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x7c], ebp
test ebx, ebx
jne 0x51473f
lea edi, [esp + 0x5c]
xor eax, eax
call fcn.00471a5b
mov ecx, dword [esp + 0x94]
cmp ecx, 2
jne 0x51450b
cmp word [edx], 0x7069
je 0x514544
jmp 0x514a58
mov dword [esp + 0x34], ebp
cmp ecx, 3
jne 0x5145cc
cmp byte [edx], 0x69
jg 0x5145a5
movzx eax, word [edx]
cmp ax, 0x7069
jne 0x514534
cmp byte [edx + 2], 0x34
je 0x514544
cmp ax, 0x7069
jne 0x514a58
cmp byte [edx + 2], 0x36
jne 0x514a58
lea eax, [0x6bf700]
mov dword [esp], eax
call fcn.0040c000
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov ecx, dword [0x95f020]
test ecx, ecx
je 0x514579
call fcn.004717c0
mov dword [edi], ebx
mov dword [eax], ebx
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x95f020]
test ecx, ecx
je 0x514597
call fcn.004717c0
mov dword [edi], edx
mov dword [eax + 0xc], edx
lea ecx, [0x763990]
jmp 0x5146ca
cmp word [edx], 0x6374
jne 0x5145b2
cmp byte [edx + 2], 0x70
je 0x5145ee
cmp word [edx], 0x6475
jne 0x514a58
cmp byte [edx + 2], 0x70
je 0x514667
jmp 0x514a58
cmp ecx, 4
jne 0x514a58
cmp byte [edx], 0x74
jg 0x514653
cmp dword [edx], 0x34706374
je 0x5145ee
cmp dword [edx], 0x36706374
jne 0x514a58
lea eax, [0x6c8700]
mov dword [esp], eax
call fcn.0040c000
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov ecx, dword [0x95f020]
test ecx, ecx
je 0x514623
call fcn.004717c0
mov dword [edi], ebx
mov dword [eax], ebx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x95f020]
test ecx, ecx
je 0x514648
call fcn.004717c0
mov dword [edi], edx
mov dword [eax + 0x10], edx
lea ecx, [0x76397c]
jmp 0x5146ca
cmp dword [edx], 0x34706475
je 0x514667
cmp dword [edx], 0x36706475
jne 0x514a58
lea eax, [0x6c8680]
mov dword [esp], eax
call fcn.0040c000
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov ecx, dword [0x95f020]
test ecx, ecx
je 0x51469c
call fcn.004717c0
mov dword [edi], ebx
mov dword [eax], ebx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x95f020]
test ecx, ecx
je 0x5146c1
call fcn.004717c0
mov dword [edi], edx
mov dword [eax + 0x10], edx
lea ecx, [0x763968]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x48], eax
lea edx, [0x6a5080]
mov dword [esp], edx
call fcn.0040c000
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov ecx, dword [0x95f020]
test ecx, ecx
jne 0x5146fa
mov ecx, dword [esp + 0x48]
jmp 0x514705
call fcn.004717c0
mov ecx, dword [esp + 0x48]
mov dword [edi], ecx
mov dword [eax + 4], ecx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], 1
mov dword [esp + 0xa8], 1
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
sub esp, 0xffffff80
ret
mov dword [esp + 0x40], ebx
mov dword [esp + 0x50], eax
mov ebp, dword [esp + 0x84]
mov dword [esp], ebp
mov ebp, dword [esp + 0x88]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x8c]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
call fcn.00515c50
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
test eax, eax
jne 0x514963
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
cmp edx, 1
je 0x5147a1
xor eax, eax
jmp 0x5147f0
mov dword [esp + 0x38], edx
mov dword [esp + 0x4c], ebx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ebp, dword [0x933a90]
mov esi, dword [0x933a94]
mov edi, dword [0x933a98]
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.00511c10
movzx eax, byte [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x4c]
test al, al
je 0x5148b6
lea edi, [esp + 0x5c]
xor eax, eax
call fcn.00471a5b
lea ecx, [edx + 1]
mov edx, dword [0x93f470]
mov ebp, dword [0x93f474]
mov eax, dword [0x93f478]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x3c]
cmp edx, ecx
jae 0x51485c
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x6bf700]
mov dword [esp + 0x10], eax
call fcn.0046c6b0
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, eax
mov dword [esp + 0x38], ecx
mov eax, dword [0x95f020]
lea ebp, [ecx + ecx*4]
lea edi, [ebx + ebp*4 - 0x14]
test eax, eax
je 0x5148a7
mov dword [esp + 0x58], ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x54], edi
lea eax, [0x6bf700]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
call fcn.0040ed00
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
lea esi, [esp + 0x5c]
call fcn.00471f3e
mov ecx, edx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x94]
test eax, eax
je 0x5148df
mov ebp, dword [esp + 0x90]
lea esi, [ebp + eax - 1]
cmp byte [esi], 0x34
jne 0x5148db
test eax, eax
lea esi, [0x7156dc]
jmp 0x5148eb
test eax, eax
jmp 0x5148e6
mov ebp, dword [esp + 0x90]
mov esi, 0
je 0x5148fc
lea eax, [ebp + eax - 1]
cmp byte [eax], 0x36
jne 0x5148fc
lea esi, [0x7156e0]
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
lea eax, [esp + 0x70]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
call fcn.00513a20
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 + 0xa0], eax
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], ebp
sub esp, 0xffffff80
ret
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
sub esp, 0xffffff80
ret
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
sub esp, 0xffffff80
ret
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
sub esp, 0xffffff80
ret
mov edx, dword [esp + 0x90]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.004663d0
mov eax, dword [esp + 8]
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
lea ecx, [0x763240]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
sub esp, 0xffffff80
ret
mov dword [esp], 0
lea eax, [0x6ff49f]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x14
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
call fcn.00450a00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004663d0
mov eax, dword [esp + 8]
lea ecx, [0x6a7120]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0046aeb0
nop
call fcn.004703c0
jmp fcn.00514310