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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x50]
cmp eax, dword [ecx + 8]
jbe 0x50bf0a
sub esp, 0xd0
mov byte [esp + 0xd4], 0
mov byte [esp + 0xd5], 0
mov byte [esp + 0xd5], 0
mov byte [esp + 0xd4], 0
mov ebx, 0x5ee3a9
mov dword [esp], ebx
mov dword [esp + 4], 3
call fcn.00509960
mov ebx, dword [esp + 8]
mov dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x90], ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x94], ebx
mov byte [esp + 0x25], 0x7f
mov byte [esp + 0x24], 0
mov byte [esp + 0x23], 0
mov byte [esp + 0x22], 1
xor ebx, ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp], 0x5bd220
mov dword [esp + 4], 0x10
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 0x10], 0
call fcn.0043b3e0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x88], ecx
mov ebp, dword [0x6badb8]
mov edx, dword [0x6badbc]
mov ebx, dword [0x6badc0]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x84], eax
mov dword [esp + 0x78], edx
cmp edx, eax
jge 0x50bc3a
mov eax, edx
mov dword [esp + 0x80], esi
mov dword [esp], esi
mov dword [esp + 0x74], ebp
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
call fcn.00452750
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
movzx ebx, byte [esp + 0x25]
mov esi, ebx
cmp ecx, 0xc
jbe 0x50bf03
mov ebx, edx
add ebx, 0xc
xchg esi, eax
mov byte [ebx], al
xchg esi, eax
movzx ebx, byte [esp + 0x24]
mov esi, ebx
cmp ecx, 0xd
jbe 0x50befc
mov ebx, edx
add ebx, 0xd
xchg esi, eax
mov byte [ebx], al
xchg esi, eax
movzx ebx, byte [esp + 0x23]
mov esi, ebx
cmp ecx, 0xe
jbe 0x50bef5
mov ebx, edx
add ebx, 0xe
xchg esi, eax
mov byte [ebx], al
xchg esi, eax
movzx ebx, byte [esp + 0x22]
mov esi, ebx
cmp ecx, 0xf
jbe 0x50beee
mov ebx, edx
add ebx, 0xf
xchg esi, eax
mov byte [ebx], al
xchg esi, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x98]
mov edi, ecx
cmp ecx, 0
je 0x50bee7
mov esi, 0x6129e0
mov edx, ecx
cld
call fcn.004524d4
mov ebp, dword [esp + 0x8c]
mov dword [edx], ebp
mov ebp, dword [esp + 0x90]
mov dword [edx + 4], ebp
mov ebp, dword [esp + 0x94]
mov dword [edx + 8], ebp
mov ebp, dword [esp + 0x50]
mov dword [edx + 0x1c], ebp
mov ebp, dword [esp + 0x54]
mov dword [edx + 0x20], ebp
mov ebp, dword [esp + 0x58]
mov dword [edx + 0x24], ebp
mov ebx, edx
mov edx, 2
mov dword [esp + 0x64], 2
mov dword [esp + 0x5c], ebx
xor ebx, ebx
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
xor ecx, ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x30], edx
mov ebp, dword [esp + 0x30]
cmp ecx, ebp
jge 0x50bda0
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp], 0x17
mov dword [esp + 4], 1
mov dword [esp + 8], 6
mov edx, dword [0x6ba7f4]
mov ebx, dword [edx]
call ebx
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ecx
cmp ecx, 0
je 0x50bdc7
mov ecx, dword [esp + 0x34]
inc ecx
mov ebp, dword [esp + 0x30]
cmp ecx, ebp
jl 0x50bd51
movzx ebx, byte [esp + 0x27]
mov ecx, ebx
movzx ebx, byte [esp + 0x26]
mov byte [esp + 0xd4], bl
mov byte [esp + 0xd5], cl
nop
call fcn.00428b40
add esp, 0xd0
ret
mov dword [esp + 0x28], edx
mov dword [esp + 8], edx
mov ebx, dword [0x6ba7e4]
mov dword [esp], 0xc
mov dword [esp + 4], ebx
call fcn.00427c70
cmp eax, 0
jne 0x50beda
mov ebx, dword [esp + 0x28]
mov dword [esp], ebx
mov dword [esp + 4], 0x29
mov dword [esp + 8], 0x1b
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x60]
cmp ebx, ebp
jae 0x50bed3
mov ebp, dword [esp + 0x5c]
imul ebx, ebx, 0x1c
add ebp, ebx
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0xc], ebx
call fcn.00456480
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x60]
cmp ebx, ebp
jae 0x50becc
mov ebp, dword [esp + 0x5c]
imul ebx, ebx, 0x1c
add ebp, ebx
mov dword [esp], ebp
mov dword [esp + 4], 0x17
call fcn.00512510
mov edx, dword [esp + 8]
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x3c], ecx
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebp
cmp ebp, 0
jne 0x50bd93
mov ebx, dword [esp + 0x28]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004564f0
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ecx
cmp ecx, 0
jne 0x50bd93
mov ecx, 1
mov ebx, dword [esp + 0x2c]
lea ebp, [esp + 0x26]
cmp ebx, 2
jae 0x50bec5
add ebp, ebx
mov byte [ebp], cl
jmp 0x50bd93
call fcn.00427990
ud2
call fcn.00427990
ud2
call fcn.00427990
ud2
nop
call fcn.00428b40
add esp, 0xd0
ret
mov dword [ecx], eax
jmp 0x50bce3
call fcn.00427990
ud2
call fcn.00427990
ud2
call fcn.00427990
ud2
call fcn.00427990
ud2
call fcn.0044ff60
jmp fcn.0050bb30