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

Disassembly:
mov ecx, dword [0x93ee7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x2c]
cmp eax, dword [ecx + 8]
jbe 0x50cc1a
sub esp, 0xac
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
lea eax, [0x93efb0]
mov dword [esp], eax
lea eax, [0x738894]
mov dword [esp + 4], eax
call fcn.00486d50
mov eax, dword [0x913448]
movzx eax, byte [eax]
test al, al
jne 0x50c1e6
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x50c243
movzx eax, byte [eax]
test al, al
je 0x50c243
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0xc], eax
call fcn.005092f0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xd4], edx
call fcn.004358b0
add esp, 0xac
ret
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
mov ecx, dword [esp + 0xb8]
mov dword [esp + 4], ecx
call fcn.0050e1b0
mov eax, dword [esp + 8]
test eax, eax
je 0x50c455
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x90], ecx
cmp dword [0x913a18], eax
jne 0x50c2b8
mov edx, dword [0x913a1c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00404430
movzx eax, byte [esp + 0xc]
test al, al
je 0x50c2ad
lea eax, [0x78afe0]
lea ecx, [0x93ed20]
jmp 0x50c2f8
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x90]
cmp dword [0x913a20], eax
jne 0x50c2f8
mov edx, dword [0x913a24]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00404430
movzx eax, byte [esp + 0xc]
test al, al
je 0x50c2ed
mov eax, dword [0x913ab0]
mov ecx, dword [0x913ab4]
jmp 0x50c2f8
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x90]
mov eax, dword [eax + 0xc]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 0xb4]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 4]
mov dword [esp + 0xa8], ecx
mov edx, dword [esp + 8]
mov dword [esp + 0x64], edx
mov ebx, dword [esp + 0xb8]
mov dword [esp], ebx
call eax
mov eax, dword [esp + 4]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0xa4], ecx
lea edx, [0x7042e0]
mov dword [esp], edx
call fcn.0040bb90
mov eax, dword [esp + 4]
mov dword [esp + 0xa0], eax
mov dword [esp], 0
mov ecx, dword [esp + 0xbc]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 8], ecx
lea ecx, [0x71b1fb]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x18], ecx
call fcn.00450710
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xa0]
mov dword [edx + 0x14], eax
mov eax, dword [0x93f150]
test eax, eax
jne 0x50c3c4
mov eax, dword [esp + 0xa8]
jmp 0x50c3e1
call fcn.00471860
mov dword [edi], ecx
mov eax, dword [edx + 0x10]
mov dword [edi + 4], eax
mov eax, dword [esp + 0xa8]
mov dword [edi + 8], eax
mov ebx, dword [edx + 8]
mov dword [edi + 0xc], ebx
mov dword [edx + 0x10], ecx
mov ecx, dword [esp + 0x64]
mov dword [edx + 0xc], ecx
mov dword [edx + 8], eax
mov eax, dword [esp + 0x60]
cmp dword [0x913a20], eax
je 0x50c3fe
xor eax, eax
jmp 0x50c427
mov ecx, dword [0x913a24]
mov dword [esp], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00404430
movzx eax, byte [esp + 0xc]
mov edx, dword [esp + 0xa0]
mov byte [edx + 0x20], al
mov dword [esp + 0xcc], 0
lea eax, [0x78b000]
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], edx
call fcn.004358b0
add esp, 0xac
ret
lea eax, [0x7388a8]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x48]
mov dword [esp], eax
call fcn.00435390
test eax, eax
jne 0x50cc0e
lea edi, [esp + 0x70]
xor eax, eax
call fcn.00471ac8
mov ecx, dword [esp + 0xc0]
cmp ecx, 2
jne 0x50c4a1
mov eax, dword [esp + 0xbc]
cmp word [eax], 0x7069
je 0x50c52f
jmp 0x50cb44
cmp ecx, 3
jne 0x50c4d0
mov eax, dword [esp + 0xbc]
cmp word [eax], 0x6374
jne 0x50c4ba
cmp byte [eax + 2], 0x70
je 0x50c4f9
cmp word [eax], 0x6475
jne 0x50cb44
cmp byte [eax + 2], 0x70
je 0x50c51f
jmp 0x50cb44
cmp ecx, 4
jne 0x50cb44
mov eax, dword [esp + 0xbc]
cmp byte [eax], 0x74
jg 0x50c50b
cmp dword [eax], 0x34706374
je 0x50c4f9
cmp dword [eax], 0x36706374
jne 0x50cb44
mov dword [esp + 0x78], 1
mov dword [esp + 0x7c], 6
jmp 0x50c52f
cmp dword [eax], 0x34706475
je 0x50c51f
cmp dword [eax], 0x36706475
jne 0x50cb44
mov dword [esp + 0x78], 2
mov dword [esp + 0x7c], 0x11
test ecx, ecx
jne 0x50c537
xor edx, edx
jmp 0x50c548
movzx edx, byte [ecx + eax - 1]
cmp dl, 0x34
je 0x50c548
cmp dl, 0x36
je 0x50c548
xor edx, edx
cmp dl, 0x34
jne 0x50c557
mov dword [esp + 0x74], 2
jmp 0x50c564
cmp dl, 0x36
jne 0x50c564
mov dword [esp + 0x74], 0x17
mov dword [esp + 0x6c], 0
mov eax, dword [esp + 0xc4]
mov dword [esp], eax
mov ecx, dword [esp + 0xc8]
mov dword [esp + 4], ecx
call fcn.004a00d0
mov eax, dword [esp + 8]
mov dword [esp], 0
mov dword [esp + 4], eax
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0xc], eax
call fcn.004a4190
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x50c909
mov dword [esp + 0x94], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov ecx, dword [esp + 0xc0]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0xc4]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0xc8]
mov dword [esp + 0xc], ebx
call fcn.005092f0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x50c8dc
mov eax, dword [esp + 0x2c]
lea ecx, [0x78aa80]
cmp eax, ecx
je 0x50c613
xor edx, edx
jmp 0x50c641
mov dword [esp], eax
mov ecx, dword [esp + 0x94]
mov dword [esp + 4], ecx
lea edx, [0x789d40]
mov dword [esp + 8], edx
call fcn.00404430
movzx eax, byte [esp + 0xc]
lea ecx, [0x78aa80]
mov edx, eax
mov eax, dword [esp + 0x2c]
test dl, dl
jne 0x50c683
cmp eax, ecx
je 0x50c64d
xor edx, edx
jmp 0x50c67b
mov dword [esp], eax
mov ecx, dword [esp + 0x94]
mov dword [esp + 4], ecx
lea edx, [0x789d30]
mov dword [esp + 8], edx
call fcn.00404430
movzx eax, byte [esp + 0xc]
lea ecx, [0x78aa80]
mov edx, eax
mov eax, dword [esp + 0x2c]
test dl, dl
je 0x50c734
mov dword [esp], 0
mov eax, dword [esp + 0xbc]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 8], eax
lea eax, [0x71b1fb]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x18], eax
call fcn.00450710
mov eax, dword [0x913484]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
lea ebx, [0x78afd0]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.0050dc50
mov eax, dword [esp + 0x18]
mov dword [esp + 0xcc], 0
lea ecx, [0x78b000]
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xd4], eax
call fcn.004358b0
add esp, 0xac
ret
cmp eax, ecx
jne 0x50c76a
mov dword [esp], eax
mov ecx, dword [esp + 0x94]
mov dword [esp + 4], ecx
lea edx, [0x789d30]
mov dword [esp + 8], edx
call fcn.00404430
movzx eax, byte [esp + 0xc]
test al, al
jne 0x50c7c6
mov eax, dword [esp + 0x2c]
lea ecx, [0x78aa80]
cmp eax, ecx
jne 0x50c79e
mov dword [esp], eax
mov ecx, dword [esp + 0x94]
mov dword [esp + 4], ecx
lea edx, [0x789d34]
mov dword [esp + 8], edx
call fcn.00404430
movzx eax, byte [esp + 0xc]
test al, al
jne 0x50c7c6
mov eax, dword [esp + 0x2c]
lea ecx, [0x78aa80]
cmp eax, ecx
jne 0x50c7d4
mov dword [esp], eax
mov ecx, dword [esp + 0x94]
mov dword [esp + 4], ecx
lea edx, [0x789d38]
mov dword [esp + 8], edx
call fcn.00404430
movzx eax, byte [esp + 0xc]
test al, al
je 0x50c7d4
mov eax, dword [0x913480]
lea ecx, [0x78afd0]
jmp 0x50c827
nop
lea eax, [0x6ed420]
mov dword [esp], eax
call fcn.0040bb90
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x71d771]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov ecx, dword [0x93f150]
test ecx, ecx
jne 0x50c810
mov ecx, dword [esp + 0x94]
jmp 0x50c81e
call fcn.00471830
mov ecx, dword [esp + 0x94]
mov dword [edi], ecx
mov dword [eax + 0xc], ecx
lea ecx, [0x78ac30]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x68], eax
mov dword [esp], 0
mov edx, dword [esp + 0xbc]
mov dword [esp + 4], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 8], edx
lea edx, [0x71b1fb]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 1
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0xc8]
mov dword [esp + 0x18], edx
call fcn.00450710
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.0050dc50
mov eax, dword [esp + 0x18]
mov dword [esp + 0xcc], 0
lea ecx, [0x78b000]
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xd4], eax
call fcn.004358b0
add esp, 0xac
ret
mov eax, dword [esp + 0x10]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
call fcn.004358b0
add esp, 0xac
ret
mov eax, dword [esp + 0x6c]
lea ecx, [0x50cc30]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x98]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.00435390
test eax, eax
jne 0x50cb38
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x50ca87
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0x18]
cmp ecx, 2
je 0x50ca4c
cmp ecx, 0x17
jne 0x50c99b
movzx eax, word [eax + 2]
mov word [esp], ax
call fcn.004a4f10
movzx eax, word [esp + 4]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
call fcn.004358b0
add esp, 0xac
ret
mov dword [esp], 0
mov eax, dword [esp + 0xbc]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 8], eax
lea eax, [0x71b1fb]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x18], eax
call fcn.00450710
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea edx, [0x78aa80]
mov dword [esp], edx
lea edx, [0x789cfc]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.0050dc50
mov eax, dword [esp + 0x18]
mov dword [esp + 0xcc], 0
lea ecx, [0x78b000]
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xd4], eax
call fcn.004358b0
add esp, 0xac
ret
movzx eax, word [eax + 2]
mov word [esp], ax
call fcn.004a4f10
movzx eax, word [esp + 4]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
call fcn.004358b0
add esp, 0xac
ret
mov dword [esp], 0
mov eax, dword [esp + 0xbc]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 8], eax
lea eax, [0x71b1fb]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x18], eax
call fcn.00450710
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea edx, [0x78aa80]
mov dword [esp], edx
lea edx, [0x789cfc]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.0050dc50
mov eax, dword [esp + 0x18]
mov dword [esp + 0xcc], 0
lea ecx, [0x78b000]
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xd4], eax
call fcn.004358b0
add esp, 0xac
ret
call fcn.004358b0
add esp, 0xac
ret
lea eax, [0x7042e0]
mov dword [esp], eax
call fcn.0040bb90
mov eax, dword [esp + 4]
mov dword [esp + 0xa0], eax
mov dword [eax + 0xc], 0xf
lea ecx, [0x71ec34]
mov dword [eax + 8], ecx
mov dword [esp], 0
mov ecx, dword [esp + 0xbc]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 8], ecx
lea ecx, [0x71b1fb]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x18], ecx
call fcn.00450710
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xa0]
mov dword [edx + 0x14], eax
mov eax, dword [0x93f150]
test eax, eax
je 0x50cbe0
call fcn.00471840
mov dword [edi], ecx
mov eax, dword [edx + 0x10]
mov dword [edi + 4], eax
mov dword [edx + 0x10], ecx
mov dword [esp + 0xcc], 0
lea eax, [0x78b000]
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], edx
call fcn.004358b0
add esp, 0xac
ret
call fcn.004358b0
add esp, 0xac
ret
call fcn.00470430
jmp fcn.0050c170