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

Disassembly:
mov ecx, dword [0x6c4e70]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x515d95
sub esp, 0x18
mov eax, dword [esp + 0x1c]
mov dword [eax + 0xac], 0
mov dword [eax + 0xb0], 0
mov ecx, dword [0x6c4f80]
test ecx, ecx
je 0x5159a6
mov ecx, dword [eax + 0xa8]
call fcn.00460ef0
mov dword [edi], ecx
mov dword [eax + 0xa8], 0
mov dword [eax + 0xbc], 0
mov dword [eax + 0xc0], 0
mov ecx, dword [0x6c4f80]
test ecx, ecx
je 0x5159db
mov ecx, dword [eax + 0xb8]
call fcn.00460ef0
mov dword [edi], ecx
mov dword [eax + 0xb8], 0
mov dword [eax + 0xc8], 0
mov dword [eax + 0xcc], 0
mov ecx, dword [0x6c4f80]
test ecx, ecx
je 0x515a10
mov ecx, dword [eax + 0xc4]
call fcn.00460ef0
mov dword [edi], ecx
mov dword [eax + 0xc4], 0
mov dword [eax + 0xd4], 0
mov dword [eax + 0xd8], 0
mov ecx, dword [0x6c4f80]
test ecx, ecx
je 0x515a45
mov ecx, dword [eax + 0xd0]
call fcn.00460ef0
mov dword [edi], ecx
mov dword [eax + 0xd0], 0
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x34]
test edx, edx
je 0x515a8c
mov ebx, dword [ecx + 0x38]
mov ebp, dword [ecx + 0x30]
mov dword [eax + 0xe8], edx
mov dword [eax + 0xec], ebx
mov edx, dword [0x6c4f80]
test edx, edx
je 0x515a86
call fcn.00460f00
mov dword [edi], ebp
mov edx, dword [eax + 0xe4]
mov dword [edi + 4], edx
mov dword [eax + 0xe4], ebp
mov edx, dword [ecx + 0x40]
test edx, edx
je 0x515ac5
mov ebx, dword [ecx + 0x44]
mov ebp, dword [ecx + 0x3c]
mov dword [eax + 0xf4], edx
mov dword [eax + 0xf8], ebx
mov edx, dword [0x6c4f80]
test edx, edx
je 0x515abf
call fcn.00460f00
mov dword [edi], ebp
mov edx, dword [eax + 0xf0]
mov dword [edi + 4], edx
mov dword [eax + 0xf0], ebp
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x515afe
mov ebx, dword [ecx + 0x50]
mov ebp, dword [ecx + 0x48]
mov dword [eax + 0x100], edx
mov dword [eax + 0x104], ebx
mov edx, dword [0x6c4f80]
test edx, edx
je 0x515af8
call fcn.00460f00
mov dword [edi], ebp
mov edx, dword [eax + 0xfc]
mov dword [edi + 4], edx
mov dword [eax + 0xfc], ebp
mov edx, dword [ecx + 0x58]
test edx, edx
je 0x515b37
mov ebx, dword [ecx + 0x5c]
mov ebp, dword [ecx + 0x54]
mov dword [eax + 0x10c], edx
mov dword [eax + 0x110], ebx
mov edx, dword [0x6c4f80]
test edx, edx
je 0x515b31
call fcn.00460f00
mov dword [edi], ebp
mov edx, dword [eax + 0x108]
mov dword [edi + 4], edx
mov dword [eax + 0x108], ebp
movzx edx, byte [ecx]
cmp dl, 6
jg 0x515c62
cmp dl, 5
je 0x515c2a
cmp dl, 6
jne 0x515d8c
mov edx, dword [ecx + 0x64]
test edx, edx
je 0x515b90
mov ebx, dword [ecx + 0x60]
mov ebp, dword [ecx + 0x68]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov byte [esp + 0x10], 0
call fcn.00514e10
movzx eax, byte [esp + 0x14]
test al, al
je 0x515c21
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x70]
test edx, edx
je 0x515beb
movzx ebx, byte [eax + 0x40]
test bl, bl
jne 0x515bb5
movzx ebx, byte [ecx + 0x84]
test bl, bl
jne 0x515beb
movzx ebx, byte [ecx + 0x85]
test bl, bl
jne 0x515beb
mov ebx, dword [ecx + 0x6c]
mov ebp, dword [ecx + 0x74]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
call fcn.00514fc0
movzx eax, byte [esp + 0x10]
test al, al
je 0x515be2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
jmp 0x515beb
mov byte [esp + 0x24], 0
add esp, 0x18
ret
mov edx, dword [ecx + 0x78]
mov ebx, dword [ecx + 0x7c]
mov ecx, dword [ecx + 0x80]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
call fcn.00515180
movzx eax, byte [esp + 0x10]
test al, al
jne 0x515d8c
mov byte [esp + 0x24], 0
add esp, 0x18
ret
mov byte [esp + 0x24], 0
add esp, 0x18
ret
mov edx, dword [ecx + 0x60]
mov ebx, dword [ecx + 0x64]
mov ecx, dword [ecx + 0x68]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov byte [esp + 0x10], 1
call fcn.00514e10
movzx eax, byte [esp + 0x14]
test al, al
jne 0x515d8c
mov byte [esp + 0x24], 0
add esp, 0x18
ret
cmp dl, 7
jne 0x515cfd
mov edx, dword [ecx + 0x64]
test edx, edx
je 0x515ca2
mov ebx, dword [ecx + 0x60]
mov ebp, dword [ecx + 0x68]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov byte [esp + 0x10], 0
call fcn.00514e10
movzx eax, byte [esp + 0x14]
test al, al
je 0x515cf4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x70]
test edx, edx
je 0x515d8c
movzx ebx, byte [eax + 0x40]
test bl, bl
jne 0x515cc4
movzx ebx, byte [ecx + 0x84]
test bl, bl
jne 0x515d8c
mov ebx, dword [ecx + 0x6c]
mov ecx, dword [ecx + 0x74]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call fcn.00514fc0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x515d8c
mov byte [esp + 0x24], 0
add esp, 0x18
ret
mov byte [esp + 0x24], 0
add esp, 0x18
ret
cmp dl, 9
jne 0x515d8c
mov edx, dword [ecx + 0x64]
test edx, edx
je 0x515d3d
mov ebx, dword [ecx + 0x60]
mov ebp, dword [ecx + 0x68]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov byte [esp + 0x10], 0
call fcn.00514e10
movzx eax, byte [esp + 0x14]
test al, al
je 0x515d83
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x70]
test edx, edx
je 0x515d8c
movzx ebx, byte [eax + 0x40]
test bl, bl
jne 0x515d57
movzx ebx, byte [ecx + 0x84]
test bl, bl
jne 0x515d8c
mov ebx, dword [ecx + 0x6c]
mov ecx, dword [ecx + 0x74]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call fcn.00514fc0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x515d8c
mov byte [esp + 0x24], 0
add esp, 0x18
ret
mov byte [esp + 0x24], 0
add esp, 0x18
ret
mov byte [esp + 0x24], 1
add esp, 0x18
ret
call fcn.0045faf0
jmp fcn.00515960