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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x5c]
cmp eax, dword [ecx + 8]
jbe 0x5111ab
sub esp, 0xdc
xor eax, eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov edi, dword [esp + 0xe8]
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
mov ecx, dword [esp + 0xe4]
mov dword [edx + 0xc], ecx
cmp byte [0x6dbe18], 0
jne 0x51117b
mov dword [edx + 0x10], edi
xor ebp, ebp
mov dword [edx + 0x14], ebp
mov dword [edx + 0x18], ebp
mov dword [edx + 0x1c], ebp
cmp ecx, 0
jne 0x510563
cmp esi, 0x54
jne 0x510550
mov dword [esp], edx
cmp dword [esp], 0
je 0x510548
add dword [esp], 0x20
mov ebx, 0x5f76ac
mov dword [esp + 4], ebx
mov dword [esp + 8], 5
call fcn.0050a750
add esp, 0xdc
ret
mov dword [0], eax
jmp 0x510527
cmp esi, 0x76
je 0x51051e
mov dword [esp], edx
mov dword [esp + 4], esi
call fcn.0050d4a0
jmp 0x510541
cmp esi, 0x54
jne 0x51062c
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edi
xor ebx, ebx
xor ebx, ebx
lea ebx, [esp + 0x80]
cmp ebx, 0
je 0x510625
mov eax, dword [ebx]
mov ebp, dword [ebx + 4]
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x98], eax
xor ebx, ebx
xor ebp, ebp
cmp eax, ebp
jne 0x51061c
xor eax, eax
mov ecx, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0xac], ecx
mov dword [esp], ecx
mov dword [esp + 0xa8], eax
mov ebx, dword [eax + 0x84]
call ebx
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xe0]
mov dword [esp], ebx
cmp dword [esp], 0
je 0x510614
add dword [esp], 0x20
mov dword [esp + 0xb0], ecx
mov dword [esp + 4], ecx
mov dword [esp + 0xb4], eax
mov dword [esp + 8], eax
call fcn.0050b6c0
add esp, 0xdc
ret
mov dword [0], eax
jmp 0x5105ee
mov ecx, eax
mov eax, 0x6b6ee0
jmp 0x5105ad
mov dword [ebx], eax
jmp 0x51058e
cmp esi, 0x70
jne 0x510688
mov dword [esp], ecx
mov dword [esp + 4], edi
call fcn.0053a070
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0xe0]
mov dword [esp], ebx
mov dword [esp + 0xd0], edx
mov dword [esp + 4], edx
mov dword [esp + 0xd4], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xd8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x70
call fcn.0050f380
add esp, 0xdc
ret
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edi
mov eax, dword [esp + 0xa0]
xor ebx, ebx
cmp eax, ebx
jne 0x51074b
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x90], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x94], ebx
mov dword [esp], edx
mov dword [esp + 4], esi
call fcn.00510000
movzx ebx, byte [esp + 8]
cmp bl, 0
jne 0x510749
mov ebx, dword [esp + 0x90]
mov dword [esp], ebx
mov ebx, dword [esp + 0x94]
mov dword [esp + 4], ebx
call fcn.0053a070
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0xe0]
mov dword [esp], ebx
mov dword [esp + 0xd0], edx
mov dword [esp + 4], edx
mov dword [esp + 0xd4], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xd8], eax
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xec]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0
call fcn.005111c0
add esp, 0xdc
ret
jmp 0x510742
mov ebx, dword [esp + 0xa0]
mov eax, dword [ebx + 8]
cmp eax, 0xb0c23ed3
ja 0x510c5c
cmp eax, 0x500c1abc
ja 0x5109bc
cmp eax, 0x2ea27ffb
ja 0x510865
mov dword [esp + 0x3c], eax
cmp eax, 0x13ff06c5
jne 0x5107e6
mov byte [esp + 0x1d], 0
mov dword [esp], 0x5c44e0
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x1d]
mov dword [esp + 0xc], ebx
call fcn.0040d510
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0x3c]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x5107e6
mov dword [esp], edx
movzx ebx, byte [esp + 0x1d]
mov byte [esp + 4], bl
mov dword [esp + 8], esi
call fcn.0050de60
jmp 0x510742
cmp eax, 0x2ea27ffb
jne 0x5106a7
xorps xmm0, xmm0
movsd qword [esp + 0x48], xmm0
mov dword [esp], 0x5c48e0
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x48]
mov dword [esp + 0xc], ebx
call fcn.0040d510
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x5106a7
mov dword [esp], edx
movsd xmm0, qword [esp + 0x48]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], esi
call fcn.0050e260
jmp 0x510742
mov dword [esp + 0x3c], eax
cmp eax, 0x382e7edf
jne 0x510917
xor ebx, ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp], 0x5ba840
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 8], ebx
lea ebx, [esp + 0xb8]
mov dword [esp + 0xc], ebx
call fcn.0040d510
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0x3c]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x510917
mov dword [esp], edx
mov ebx, dword [esp + 0xb8]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xbc]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xc0]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
mov ebx, 0x5f7a10
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 6
call fcn.0050e810
jmp 0x510742
cmp eax, 0x500c1abc
jne 0x5106a7
xor ebx, ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp], 0x5f6b80
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 8], ebx
lea ebx, [esp + 0xc4]
mov dword [esp + 0xc], ebx
call fcn.0040d510
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x5106a7
mov dword [esp], edx
mov ebx, dword [esp + 0xc4]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xc8]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xcc]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0
call fcn.005111c0
jmp 0x510742
cmp eax, 0x7925028c
ja 0x510ad3
mov dword [esp + 0x3c], eax
cmp eax, 0x663e425f
jne 0x510a42
mov byte [esp + 0x1e], 0
mov dword [esp], 0x5c5920
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x1e]
mov dword [esp + 0xc], ebx
call fcn.0040d510
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0x3c]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x510a42
mov dword [esp], edx
movzx ebx, byte [esp + 0x1e]
xor ecx, ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov byte [esp + 0xc], 0
mov dword [esp + 0x10], esi
call fcn.0050df60
jmp 0x510742
cmp eax, 0x7925028c
jne 0x5106a7
xorps xmm0, xmm0
movss dword [esp + 0x40], xmm0
movss dword [esp + 0x44], xmm0
mov dword [esp], 0x5c45a0
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x40]
mov dword [esp + 0xc], ebx
call fcn.0040d510
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x5106a7
mov dword [esp], edx
cvtss2sd xmm0, dword [esp + 0x40]
movsd qword [esp + 4], xmm0
cvtss2sd xmm0, dword [esp + 0x44]
movsd qword [esp + 0xc], xmm0
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x18], esi
call fcn.0050e3d0
jmp 0x510742
mov dword [esp + 0x3c], eax
cmp eax, 0x86318d2e
jne 0x510b5a
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp], 0x5c58e0
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x50]
mov dword [esp + 0xc], ebx
call fcn.0040d510
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0x3c]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x510b5a
mov dword [esp], edx
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 8], eax
mov byte [esp + 0xc], 0
mov dword [esp + 0x10], esi
call fcn.0050df60
jmp 0x510742
cmp eax, 0x963f9bff
jne 0x510bdd
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp], 0x5c5220
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x58]
mov dword [esp + 0xc], ebx
call fcn.0040d510
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0x3c]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x510bdd
mov dword [esp], edx
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
mov byte [esp + 0xc], 1
mov dword [esp + 0x10], esi
call fcn.0050df60
jmp 0x510742
cmp eax, 0xb0c23ed3
jne 0x5106a7
xorps xmm0, xmm0
movss dword [esp + 0x38], xmm0
mov dword [esp], 0x5c48a0
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x38]
mov dword [esp + 0xc], ebx
call fcn.0040d510
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x5106a7
mov dword [esp], edx
cvtss2sd xmm0, dword [esp + 0x38]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], 0x20
mov dword [esp + 0x10], esi
call fcn.0050e260
jmp 0x510742
cmp eax, 0xd04ae83d
ja 0x510ef5
cmp eax, 0xbbad4102
ja 0x510d83
mov dword [esp + 0x3c], eax
cmp eax, 0xb31a546d
jne 0x510d07
xorps xmm0, xmm0
movsd qword [esp + 0x60], xmm0
movsd qword [esp + 0x68], xmm0
mov dword [esp], 0x5c4560
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x60]
mov dword [esp + 0xc], ebx
call fcn.0040d510
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0x3c]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x510d07
mov dword [esp], edx
movsd xmm0, qword [esp + 0x60]
movsd qword [esp + 4], xmm0
movsd xmm0, qword [esp + 0x68]
movsd qword [esp + 0xc], xmm0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x18], esi
call fcn.0050e3d0
jmp 0x510742
cmp eax, 0xbbad4102
jne 0x5106a7
mov dword [esp + 0x28], 0
mov dword [esp], 0x5c51e0
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x28]
mov dword [esp + 0xc], ebx
call fcn.0040d510
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x5106a7
mov dword [esp], edx
mov eax, dword [esp + 0x28]
cdq
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov byte [esp + 0xc], 1
mov dword [esp + 0x10], esi
call fcn.0050df60
jmp 0x510742
mov dword [esp + 0x3c], eax
cmp eax, 0xbd4ad792
jne 0x510e00
mov dword [esp + 0x30], 0
mov dword [esp], 0x5c5960
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x30]
mov dword [esp + 0xc], ebx
call fcn.0040d510
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0x3c]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x510e00
mov dword [esp], edx
mov ebx, dword [esp + 0x30]
xor ecx, ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov byte [esp + 0xc], 0
mov dword [esp + 0x10], esi
call fcn.0050df60
jmp 0x510742
cmp eax, 0xcc06c027
jne 0x510e78
mov byte [esp + 0x1f], 0
mov dword [esp], 0x5c5260
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x1f]
mov dword [esp + 0xc], ebx
call fcn.0040d510
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0x3c]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x510e78
mov dword [esp], edx
movsx ebx, byte [esp + 0x1f]
mov eax, ebx
cdq
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov byte [esp + 0xc], 1
mov dword [esp + 0x10], esi
call fcn.0050df60
jmp 0x510742
cmp eax, 0xd04ae83d
jne 0x5106a7
mov dword [esp + 0x34], 0
mov dword [esp], 0x5c58a0
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x34]
mov dword [esp + 0xc], ebx
call fcn.0040d510
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x5106a7
mov dword [esp], edx
mov ebx, dword [esp + 0x34]
xor ecx, ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov byte [esp + 0xc], 0
mov dword [esp + 0x10], esi
call fcn.0050df60
jmp 0x510742
cmp eax, 0xe0ff5cb4
ja 0x511008
mov dword [esp + 0x3c], eax
cmp eax, 0xd5b87712
jne 0x510f7d
mov dword [esp + 0x2c], 0
mov dword [esp], 0x5c5820
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x2c]
mov dword [esp + 0xc], ebx
call fcn.0040d510
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0x3c]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x510f7d
mov dword [esp], edx
mov ebx, dword [esp + 0x2c]
xor ecx, ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov byte [esp + 0xc], 0
mov dword [esp + 0x10], esi
call fcn.0050df60
jmp 0x510742
cmp eax, 0xe0ff5cb4
jne 0x5106a7
xor ebx, ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp], 0x5c5720
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x88]
mov dword [esp + 0xc], ebx
call fcn.0040d510
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x5106a7
mov dword [esp], edx
mov ebx, dword [esp + 0x88]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
call fcn.0050e690
jmp 0x510742
mov dword [esp + 0x3c], eax
cmp eax, 0xecd580ce
jne 0x511086
mov word [esp + 0x20], 0
mov dword [esp], 0x5c51a0
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x20]
mov dword [esp + 0xc], ebx
call fcn.0040d510
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0x3c]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x511086
mov dword [esp], edx
movsx ebx, word [esp + 0x20]
mov eax, ebx
cdq
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov byte [esp + 0xc], 1
mov dword [esp + 0x10], esi
call fcn.0050df60
jmp 0x510742
cmp eax, 0xeff20ea0
jne 0x5110ff
mov word [esp + 0x22], 0
mov dword [esp], 0x5c5860
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x22]
mov dword [esp + 0xc], ebx
call fcn.0040d510
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0x3c]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x5110ff
mov dword [esp], edx
movzx ebx, word [esp + 0x22]
xor ecx, ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov byte [esp + 0xc], 0
mov dword [esp + 0x10], esi
call fcn.0050df60
jmp 0x510742
cmp eax, 0xf75371fa
jne 0x5106a7
mov dword [esp + 0x24], 0
mov dword [esp], 0x5c5160
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x24]
mov dword [esp + 0xc], ebx
call fcn.0040d510
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x5106a7
mov dword [esp], edx
mov eax, dword [esp + 0x24]
cdq
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov byte [esp + 0xc], 1
mov dword [esp + 0x10], esi
call fcn.0050df60
jmp 0x510742
lea esi, [edx + 0x10]
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.00410660
mov edi, dword [esp + 0xe8]
mov esi, dword [esp + 0xec]
mov edx, dword [esp + 0xe0]
mov ecx, dword [esp + 0xe4]
jmp 0x510509
call fcn.00452240
jmp fcn.00510480