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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x44]
cmp eax, dword [ecx + 8]
jbe 0x510120
sub esp, 0xc4
mov eax, dword [esp + 0xcc]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0xc8]
mov dword [esp], ecx
call fcn.0050cd10
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0xc8]
mov ebx, dword [edx + 0x30]
mov dword [esp + 4], ebx
lea ebx, [0x7d62c0]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.004091f0
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0xc8]
lea edx, [ecx + 0x30]
test al, al
jne 0x50fe7d
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x50fe3d
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0xcc]
mov dword [edx + 4], eax
mov ebx, dword [0xcc2260]
test ebx, ebx
jne 0x50fe19
mov ebx, dword [esp + 0x4c]
mov dword [edx], ebx
mov edx, dword [ecx + 0x30]
mov dword [esp + 4], edx
lea edx, [0x7d62c0]
mov dword [esp], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
call fcn.00409eb0
mov eax, dword [esp + 0x10]
test byte [eax], al
mov ecx, dword [0xcc2260]
test ecx, ecx
jne 0x50fdfa
mov ecx, dword [esp + 0xcc]
mov dword [eax], ecx
mov eax, dword [esp + 0xc8]
mov edx, dword [eax + 0x3c]
mov ebx, dword [eax + 0x34]
mov ebp, dword [eax + 0x38]
lea esi, [eax + 0x34]
lea edi, [ebp + 1]
cmp edi, edx
jg 0x50fd75
lea edx, [ebp + 1]
mov dword [eax + 0x38], edx
lea edx, [ebx + ebp*4]
mov esi, dword [0xcc2260]
test esi, esi
jne 0x50fd56
mov dword [ebx + ebp*4], ecx
mov edx, dword [ecx + 0xc]
test edx, edx
jne 0x50fabb
add esp, 0xc4
ret
lea ebx, [ecx + 8]
cmp edx, 1
jg 0x50fcbb
mov edx, dword [eax + 0x4c]
lea ebx, [eax + 0x4c]
test edx, edx
je 0x50fc76
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
test ebx, ebx
jbe 0x50ffd2
movzx ecx, byte [edx]
mov byte [esp + 0x29], cl
mov byte [esp + 0x2b], cl
mov edx, dword [eax + 0x4c]
mov dword [esp + 4], edx
lea edx, [0x7d7a40]
mov dword [esp], edx
lea ebx, [esp + 0x2b]
mov dword [esp + 8], ebx
call fcn.004067e0
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0x10]
mov eax, dword [eax]
test cl, cl
jne 0x50fb7c
movzx eax, byte [esp + 0x29]
mov byte [esp + 0x2a], al
mov eax, dword [esp + 0xc8]
mov eax, dword [eax + 0x4c]
mov dword [esp + 4], eax
lea eax, [0x7d7a40]
mov dword [esp], eax
lea eax, [esp + 0x2a]
mov dword [esp + 8], eax
call fcn.00406b80
mov eax, dword [esp + 0xc]
test byte [eax], al
mov ecx, dword [0xcc2260]
test ecx, ecx
jne 0x50fb67
mov ecx, dword [esp + 0xcc]
mov dword [eax], ecx
add esp, 0xc4
ret
mov dword [esp], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 4], eax
call fcn.0040f360
jmp 0x50fb60
mov dword [esp + 0x48], eax
lea edi, [esp + 0xac]
xor eax, eax
call fcn.0044dd6a
lea ecx, [0x7d0160]
mov dword [esp + 0xac], ecx
movzx ecx, byte [esp + 0x29]
movzx ecx, cl
lea edx, [0xb91c00]
add ecx, edx
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0xc8]
lea edx, [ecx + 8]
mov dword [esp + 4], edx
lea edx, [0x7cfea0]
mov dword [esp], edx
call fcn.0040c380
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], edx
mov ecx, dword [esp + 0x48]
test byte [ecx], al
mov dword [esp + 4], ecx
lea ecx, [0x7cfea0]
mov dword [esp], ecx
call fcn.0040c380
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], edx
lea ecx, [0x864bbf]
mov dword [esp], ecx
mov dword [esp + 4], 0x4c
lea ecx, [esp + 0xac]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 3
call fcn.004b9e50
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0xc8]
mov ebp, dword [ebx + 0x64]
mov ebx, dword [ebx + 0x68]
test ebp, ebp
je 0x50fc65
mov eax, ebx
mov ebx, ebp
jmp 0x50ff62
mov eax, dword [0xcacf14]
lea ebx, [0x9b1de0]
jmp 0x50ff62
mov dword [esp + 0x68], ebx
call fcn.004063c0
mov eax, dword [0xcc2260]
mov ecx, dword [esp]
test eax, eax
jne 0x50fca2
mov eax, dword [esp + 0xc8]
mov dword [eax + 0x4c], ecx
mov ecx, dword [esp + 0xcc]
jmp 0x50fad5
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040f360
mov eax, dword [esp + 0xc8]
jmp 0x50fc96
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 4], ebx
lea eax, [0x7cfea0]
mov dword [esp], eax
call fcn.0040c380
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
lea eax, [0x85f326]
mov dword [esp], eax
mov dword [esp + 4], 0x2d
lea eax, [esp + 0x7c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004b9e50
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc8]
mov ebx, dword [edx + 0x68]
mov edx, dword [edx + 0x64]
test edx, edx
je 0x50fd45
mov ebp, edx
mov edx, ebx
mov ebx, ebp
jmp 0x50ffd9
mov edx, dword [0xcacf14]
lea ebx, [0x9b1de0]
jmp 0x50ffd9
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.0040f360
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xcc]
jmp 0x50faad
mov dword [esp + 0x64], esi
lea eax, [0x7dd300]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edi
call fcn.0043a030
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xc8]
mov dword [ebx + 0x3c], edx
mov edx, dword [0xcc2260]
test edx, edx
jne 0x50fdd1
mov dword [ebx + 0x34], eax
mov ebp, ecx
mov ebx, eax
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xcc]
jmp 0x50fa93
mov dword [esp + 0x60], eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040f360
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0xc8]
jmp 0x50fdba
mov dword [esp], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 4], eax
call fcn.0040f360
mov ecx, dword [esp + 0xcc]
jmp 0x50fa75
mov dword [esp], edx
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.0040f360
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc8]
mov ebx, dword [esp + 0x4c]
jmp 0x50fa3b
mov dword [esp + 0x5c], edx
call fcn.004063c0
mov eax, dword [0xcc2260]
mov ecx, dword [esp]
test eax, eax
jne 0x50fe64
mov eax, dword [esp + 0xc8]
mov dword [eax + 0x30], ecx
mov ecx, eax
jmp 0x50fa19
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040f360
mov eax, dword [esp + 0xc8]
jmp 0x50fe5d
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
lea eax, [ecx + 8]
mov dword [esp + 4], eax
lea eax, [0x7cfea0]
mov dword [esp], eax
call fcn.0040c380
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 4], eax
lea eax, [0x7cfea0]
mov dword [esp], eax
call fcn.0040c380
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
lea eax, [0x8519f3]
mov dword [esp], eax
mov dword [esp + 4], 0x15
lea eax, [esp + 0x9c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004b9e50
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc8]
mov ebx, dword [edx + 0x64]
mov edx, dword [edx + 0x68]
test ebx, ebx
jne 0x510049
mov edx, dword [0xcacf14]
lea ebx, [0x9b1de0]
jmp 0x510049
mov dword [esp + 0x50], ecx
mov dword [esp + 0x30], edx
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
mov dword [esp + 0x18], 0
call fcn.004b9d00
mov eax, dword [esp + 0x50]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x70], eax
lea eax, [0x7cfea0]
mov dword [esp], eax
lea eax, [esp + 0x6c]
mov dword [esp + 4], eax
call fcn.0040c380
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004278c0
ud2
call fcn.00426a70
ud2
mov dword [esp + 0x38], eax
mov dword [esp + 0x58], ecx
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004b9d00
mov eax, dword [esp + 0x58]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x78], eax
lea eax, [0x7cfea0]
mov dword [esp], eax
lea eax, [esp + 0x74]
mov dword [esp + 4], eax
call fcn.0040c380
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004278c0
ud2
mov dword [esp + 0x34], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
lea ebp, [0x7cfea0]
mov dword [esp], ebp
lea esi, [esp + 0x8c]
mov dword [esp + 4], esi
call fcn.0040c380
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
lea eax, [esp + 0x94]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004ba120
mov eax, dword [esp + 0x54]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x88], eax
lea eax, [0x7cfea0]
mov dword [esp], eax
lea eax, [esp + 0x84]
mov dword [esp + 4], eax
call fcn.0040c380
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004278c0
ud2
call fcn.0044c200
jmp fcn.0050f980