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

Disassembly:
mov ecx, dword [0x99504c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x14]
cmp eax, dword [ecx + 8]
jbe 0x51d020
sub esp, 0x94
mov ecx, dword [esp + 0xa8]
cmp ecx, 2
jne 0x51c87d
mov edx, dword [esp + 0xa4]
cmp word [edx], 0x7069
je 0x51c8b3
jmp 0x51cf83
cmp ecx, 3
jne 0x51c8f5
mov edx, dword [esp + 0xa4]
cmp byte [edx], 0x69
jg 0x51c8d2
movzx ebx, word [edx]
cmp bx, 0x7069
jne 0x51c8a3
cmp byte [edx + 2], 0x34
je 0x51c8b3
cmp bx, 0x7069
jne 0x51cf83
cmp byte [edx + 2], 0x36
jne 0x51cf83
mov ebx, dword [esp + 0xb0]
test ebx, ebx
je 0x51c8c7
mov eax, dword [esp + 0xac]
jmp 0x51c8cb
xor ebx, ebx
xor eax, eax
xor ebp, ebp
jmp 0x51c9f1
cmp word [edx], 0x6374
jne 0x51c8df
cmp byte [edx + 2], 0x70
je 0x51c933
cmp word [edx], 0x6475
jne 0x51cf83
cmp byte [edx + 2], 0x70
je 0x51c933
jmp 0x51cf83
cmp ecx, 4
jne 0x51cf7c
mov edx, dword [esp + 0xa4]
cmp byte [edx], 0x74
jg 0x51c91f
cmp dword [edx], 0x34706374
je 0x51c933
cmp dword [edx], 0x36706374
je 0x51c933
jmp 0x51cf83
cmp dword [edx], 0x34706475
je 0x51c933
cmp dword [edx], 0x36706475
jne 0x51cf83
mov ebx, dword [esp + 0xb0]
test ebx, ebx
jne 0x51c949
xor ebx, ebx
xor eax, eax
xor ebp, ebp
jmp 0x51c9e9
mov eax, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.0051c250
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x51cf3e
mov dword [esp + 0x40], edx
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x98]
mov dword [esp], edx
mov ebx, dword [esp + 0x9c]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0xa0]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0xa4]
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call fcn.0051f330
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x51cf00
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
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 + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea esi, [0x51d030]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], ebp
test ebx, ebx
jne 0x51cc89
lea edi, [esp + 0x6c]
xor eax, eax
call fcn.004690fb
mov ecx, dword [esp + 0xa8]
cmp ecx, 2
jne 0x51ca52
cmp word [edx], 0x7069
je 0x51ca8b
jmp 0x51cfcf
mov dword [esp + 0x34], ebp
cmp ecx, 3
jne 0x51cb13
cmp byte [edx], 0x69
jg 0x51caec
movzx eax, word [edx]
cmp ax, 0x7069
jne 0x51ca7b
cmp byte [edx + 2], 0x34
je 0x51ca8b
cmp ax, 0x7069
jne 0x51cfcf
cmp byte [edx + 2], 0x36
jne 0x51cfcf
lea eax, [0x7096c0]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov ecx, dword [0x995310]
test ecx, ecx
je 0x51cac0
call fcn.00468e60
mov dword [edi], ebx
mov dword [eax], ebx
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x995310]
test ecx, ecx
je 0x51cade
call fcn.00468e60
mov dword [edi], edx
mov dword [eax + 0xc], edx
lea ecx, [0x7b17f4]
jmp 0x51cc11
cmp word [edx], 0x6374
jne 0x51caf9
cmp byte [edx + 2], 0x70
je 0x51cb35
cmp word [edx], 0x6475
jne 0x51cfcf
cmp byte [edx + 2], 0x70
je 0x51cbae
jmp 0x51cfcf
cmp ecx, 4
jne 0x51cfcf
cmp byte [edx], 0x74
jg 0x51cb9a
cmp dword [edx], 0x34706374
je 0x51cb35
cmp dword [edx], 0x36706374
jne 0x51cfcf
lea eax, [0x710e60]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov ecx, dword [0x995310]
test ecx, ecx
je 0x51cb6a
call fcn.00468e60
mov dword [edi], ebx
mov dword [eax], ebx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x995310]
test ecx, ecx
je 0x51cb8f
call fcn.00468e60
mov dword [edi], edx
mov dword [eax + 0x10], edx
lea ecx, [0x7b165c]
jmp 0x51cc11
cmp dword [edx], 0x34706475
je 0x51cbae
cmp dword [edx], 0x36706475
jne 0x51cfcf
lea eax, [0x710de0]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov ecx, dword [0x995310]
test ecx, ecx
je 0x51cbe3
call fcn.00468e60
mov dword [edi], ebx
mov dword [eax], ebx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x995310]
test ecx, ecx
je 0x51cc08
call fcn.00468e60
mov dword [edi], edx
mov dword [eax + 0x10], edx
lea ecx, [0x7b17dc]
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], ecx
lea edx, [0x6f1820]
mov dword [esp], edx
call fcn.0040c500
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov ecx, dword [0x995310]
test ecx, ecx
jne 0x51cc41
mov ecx, dword [esp + 0x48]
jmp 0x51cc4c
call fcn.00468e60
mov ecx, dword [esp + 0x48]
mov dword [edi], ecx
mov dword [eax + 4], ecx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], 1
mov dword [esp + 0xbc], 1
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
add esp, 0x94
ret
mov dword [esp + 0x40], ebx
mov dword [esp + 0x50], eax
mov ebp, dword [esp + 0x98]
mov dword [esp], ebp
mov ebp, dword [esp + 0x9c]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0xa0]
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.0051e460
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
test eax, eax
jne 0x51cec2
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
cmp edx, 1
je 0x51cceb
xor eax, eax
jmp 0x51cd3a
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 [0x9679d0]
mov esi, dword [0x9679d4]
mov edi, dword [0x9679d8]
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.0051a030
movzx eax, byte [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x4c]
test al, al
je 0x51ce12
lea edi, [esp + 0x80]
xor eax, eax
call fcn.004690fb
lea ecx, [edx + 1]
mov edx, dword [0x96ecc0]
mov ebp, dword [0x96ecc4]
mov eax, dword [0x96ecc8]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0x3c]
cmp edx, ecx
jae 0x51cdb2
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x7096c0]
mov dword [esp + 0x10], eax
call fcn.0044e6e0
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 [0x995310]
lea ebp, [ecx + ecx*4]
lea edi, [ebx + ebp*4 - 0x14]
test eax, eax
je 0x51ce00
mov dword [esp + 0x58], ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x54], edi
lea eax, [0x7096c0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x80]
mov dword [esp + 8], eax
call fcn.00411b70
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
lea esi, [esp + 0x80]
call fcn.004695de
mov ecx, edx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x51ce3b
mov ebp, dword [esp + 0xa4]
lea esi, [ebp + eax - 1]
cmp byte [esi], 0x34
jne 0x51ce37
test eax, eax
lea esi, [0x7588a8]
jmp 0x51ce47
test eax, eax
jmp 0x51ce42
mov ebp, dword [esp + 0xa4]
mov esi, 0
je 0x51ce58
lea eax, [ebp + eax - 1]
cmp byte [eax], 0x36
jne 0x51ce58
lea esi, [0x7588ac]
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
lea eax, [esp + 0x5c]
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.0051bf30
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ebp
add esp, 0x94
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ecx
add esp, 0x94
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ecx
add esp, 0x94
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ecx
add esp, 0x94
ret
mov edx, dword [esp + 0xa4]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.00409d40
mov eax, dword [esp + 8]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
lea ecx, [0x7b0d70]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], eax
add esp, 0x94
ret
mov dword [esp], 0
lea eax, [0x740286]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x14
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
call fcn.00452120
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409d40
mov eax, dword [esp + 8]
lea ecx, [0x6f44e0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00438b10
nop
call fcn.00467a60
jmp fcn.0051c840