Function at 0x50aa00
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 0x50adc3
sub esp, 0x6c
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x50aa27
mov ebx, dword [ecx + 8]
jmp 0x50aa2f
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x30], edx
mov dword [esp + 0x44], ebx
mov ebp, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
cmp edx, 5
jne 0x50aa70
cmp dword [ebx], 0x65732121
je 0x50aa4f
cmp edx, 5
jmp 0x50aa5c
cmp byte [ebx + 4], 0x71
je 0x50ab0b
cmp edx, 5
jne 0x50aa70
cmp dword [ebx], 0x616d2121
jne 0x50aa70
cmp byte [ebx + 4], 0x70
je 0x50ab0b
cmp esi, 0xa
jle 0x50aabb
mov dword [esp], 0
lea eax, [0x5863f1]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], 7
lea eax, [0x586729]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 4
call fcn.0044d040
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
jmp 0x50aafb
mov dword [esp], 0
lea eax, [0x5863f1]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
lea eax, str._______SMsh
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 1
call fcn.0044d040
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x44]
mov esi, ecx
mov ebp, eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x2c], esi
cmp edx, 0x12
jge 0x50ab1c
xor eax, eax
jmp 0x50ab4f
mov dword [esp], ebx
lea eax, [0x589c3c]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x12
call fcn.00403360
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x2c]
test al, al
je 0x50abf1
mov eax, dword [0x69fdc8]
lea ecx, [0x562ae0]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.0040f8e0
movzx eax, byte [esp + 0x14]
test al, al
je 0x50ab97
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x2c]
jmp 0x50abf1
mov ecx, dword [esp + 0x30]
cmp ecx, 0x12
jb 0x50adb8
mov dword [esp], 0
lea eax, [0x5863ef]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
lea eax, [ecx - 0x12]
mov ecx, eax
neg eax
sar eax, 0x1f
and eax, 0x12
mov edx, dword [esp + 0x44]
add eax, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.0044cfa0
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], ebx
mov esi, dword [esp + 0x88]
test esi, esi
je 0x50ac1b
test esi, 0x200
jne 0x50ac1b
lea esi, [0x5c13b8]
mov edi, dword [esp + 0x80]
jmp 0x50ac49
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.0048a890
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov esi, eax
mov edi, ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x28], esi
xor eax, eax
lea edi, [esp + 0x4c]
call fcn.004610e8
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + 0x48]
mov dword [esp], ecx
call fcn.00409470
mov ecx, dword [esp + 4]
lea edx, [0x5609a0]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
call fcn.00409580
mov ecx, dword [esp + 8]
lea edx, [0x560820]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
call fcn.00409580
mov ecx, dword [esp + 8]
lea edx, [0x560820]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x50acd6
mov esi, dword [ecx + 4]
jmp 0x50acd8
mov esi, ecx
mov dword [esp + 0x64], esi
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x68], eax
lea eax, [0x5907d6]
mov dword [esp], eax
mov dword [esp + 4], 0x26
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], 4
call fcn.004b0a30
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
inc edx
mov ebx, dword [eax + 8]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
cmp ecx, edx
jae 0x50ad8f
mov dword [esp + 0x48], ebp
mov dword [esp + 0x34], esi
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x560820]
mov dword [esp + 0x10], eax
call fcn.004495c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x70]
mov dword [ebx + 0x10], eax
mov eax, dword [0x6c4f80]
test eax, eax
je 0x50ad80
call fcn.00460f00
mov dword [edi], ecx
mov eax, dword [ebx + 8]
mov dword [edi + 4], eax
mov dword [ebx + 8], ecx
mov eax, ebx
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x34]
mov ebx, ecx
mov dword [eax + 0xc], edx
lea eax, [ebx + edx*8 - 4]
mov dword [eax], esi
mov eax, dword [0x6c4f80]
lea ecx, [ebx + edx*8 - 8]
test eax, eax
je 0x50adb2
call fcn.00460f00
mov dword [edi], ebp
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov dword [ecx], ebp
add esp, 0x6c
ret
mov eax, 0x12
call fcn.00460fc0
nop
call fcn.0045faf0
jmp fcn.0050aa00