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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x38]
cmp eax, dword [ecx + 8]
jbe 0x50a8e8
sub esp, 0xb8
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x50a8ce
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0xc8]
mov dword [esp + 0x4c], edx
mov ebx, dword [esp + 0x48]
test ebx, ebx
je 0x50a719
lea ebp, [0x69aa00]
mov dword [esp], ebp
mov dword [esp + 4], ebx
call fcn.00506bd0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x80], ecx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x84], edx
mov ebx, dword [esp + 0xc4]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0xc8]
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x50a710
lea ebp, [0x69aa00]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
test ebp, ebp
je 0x50a4ea
mov ebp, dword [ebp + 4]
mov dword [esp + 0x3c], ebp
lea eax, [0x5cd8e0]
mov dword [esp], eax
lea ecx, [esp + 0x80]
mov dword [esp + 4], ecx
call fcn.0040a970
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
lea eax, [0x78db70]
mov dword [esp], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
call fcn.0044c080
movzx eax, byte [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test al, al
je 0x50a583
mov ebx, dword [esp + 0x24]
mov ebp, dword [ebx + 4]
mov esi, dword [ebx]
test esi, esi
je 0x50a556
mov esi, dword [esi + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
cmp ecx, esi
jne 0x50a6dd
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
call fcn.00402030
movzx eax, byte [esp + 0xc]
test al, al
je 0x50a6dd
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0x24]
mov ebx, dword [edx + 0xc]
mov dword [esp + 0x3c], ebx
mov ebp, dword [edx + 8]
test ebp, ebp
je 0x50a5ae
mov ebp, dword [ebp + 4]
mov dword [esp + 0x38], ebp
lea eax, [0x5cd8e0]
mov dword [esp], eax
lea ecx, [esp + 0x68]
mov dword [esp + 4], ecx
call fcn.0040a970
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
lea eax, [0x78db50]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
call fcn.0044c080
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
movzx edx, byte [esp + 0x1c]
test dl, dl
je 0x50a622
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
lea edx, [0x5cd8e0]
cmp ecx, edx
je 0x50a68a
mov ebx, 1
test bl, bl
jne 0x50a629
add esp, 0xb8
ret
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x54], ecx
lea ebx, [0x78db70]
mov dword [esp], ebx
mov dword [esp + 4], edx
lea ebx, [esp + 0x50]
mov dword [esp + 8], ebx
call fcn.0044c630
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
test eax, eax
je 0x50a722
mov edx, dword [eax + 4]
mov eax, edx
jmp 0x50a722
mov ebx, dword [eax + 4]
mov ebp, dword [eax]
mov esi, dword [esp + 0xc0]
cmp ebx, esi
je 0x50a6a4
mov ebx, 1
jmp 0x50a61e
mov dword [esp], ebp
mov eax, dword [esp + 0xbc]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.00448210
movzx ebx, byte [esp + 0xc]
xor ebx, 1
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
lea edx, [0x5cd8e0]
mov esi, dword [esp + 0xc0]
jmp 0x50a61e
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
mov dword [esp + 0x3c], edx
mov ecx, dword [ecx]
test ecx, ecx
je 0x50a7f7
mov ecx, dword [ecx + 4]
jmp 0x50a7f7
xor ebp, ebp
xor ebx, ebx
jmp 0x50a4db
xor ebx, ebx
xor ebp, ebp
jmp 0x50a487
mov dword [esp + 0x3c], ecx
lea edi, [esp + 0x88]
mov edx, eax
xor eax, eax
call fcn.004485ca
mov dword [esp + 0x88], edx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x94], ecx
lea ecx, [0x5cd8e0]
mov dword [esp], ecx
lea edx, [esp + 0x60]
mov dword [esp + 4], edx
call fcn.0040a970
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], ecx
lea ecx, [0x60717c]
mov dword [esp], ecx
mov dword [esp + 4], 0x31
lea ecx, [esp + 0x88]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 3
call fcn.004940e0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
lea ecx, [0x5cd8e0]
mov dword [esp], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 4], ecx
call fcn.0040a970
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.004251b0
ud2
mov dword [esp + 0x38], ecx
lea edi, [esp + 0xa0]
xor eax, eax
call fcn.004485ca
lea ecx, [0x5cd8e0]
mov dword [esp], ecx
lea edx, [esp + 0x78]
mov dword [esp + 4], edx
call fcn.0040a970
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xb4], ecx
lea ecx, [0x6071ad]
mov dword [esp], ecx
mov dword [esp + 4], 0x31
lea ecx, [esp + 0xa0]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 3
call fcn.004940e0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
lea ecx, [0x5cd8e0]
mov dword [esp], ecx
lea ecx, [esp + 0x70]
mov dword [esp + 4], ecx
call fcn.0040a970
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.004251b0
ud2
lea eax, [0x5cd8e0]
mov dword [esp], eax
lea eax, [0x698e18]
mov dword [esp + 4], eax
call fcn.004251b0
ud2
call fcn.00446b60
jmp fcn.0050a430