Function at 0x50bd90
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 0x50c16a
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, 0x5ee649
mov dword [esp], ebx
mov dword [esp + 4], 3
call fcn.00509bc0
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], 0x5bd4c0
mov dword [esp + 4], 0x10
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 0x10], 0
call fcn.0043b640
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 0x50be9a
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.004529b0
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
movzx ebx, byte [esp + 0x25]
mov esi, ebx
cmp ecx, 0xc
jbe 0x50c163
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 0x50c15c
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 0x50c155
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 0x50c14e
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 0x50c147
mov esi, 0x612cc0
mov edx, ecx
cld
call fcn.00452734
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 0x50c000
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 0x50c027
mov ecx, dword [esp + 0x34]
inc ecx
mov ebp, dword [esp + 0x30]
cmp ecx, ebp
jl 0x50bfb1
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.00428da0
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.00427ed0
cmp eax, 0
jne 0x50c13a
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 0x50c133
mov ebp, dword [esp + 0x5c]
imul ebx, ebx, 0x1c
add ebp, ebx
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0xc], ebx
call fcn.004566e0
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x60]
cmp ebx, ebp
jae 0x50c12c
mov ebp, dword [esp + 0x5c]
imul ebx, ebx, 0x1c
add ebp, ebx
mov dword [esp], ebp
mov dword [esp + 4], 0x17
call fcn.00512770
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 0x50bff3
mov ebx, dword [esp + 0x28]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00456750
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ecx
cmp ecx, 0
jne 0x50bff3
mov ecx, 1
mov ebx, dword [esp + 0x2c]
lea ebp, [esp + 0x26]
cmp ebx, 2
jae 0x50c125
add ebp, ebx
mov byte [ebp], cl
jmp 0x50bff3
call fcn.00427bf0
ud2
call fcn.00427bf0
ud2
call fcn.00427bf0
ud2
nop
call fcn.00428da0
add esp, 0xd0
ret
mov dword [ecx], eax
jmp 0x50bf43
call fcn.00427bf0
ud2
call fcn.00427bf0
ud2
call fcn.00427bf0
ud2
call fcn.00427bf0
ud2
call fcn.004501c0
jmp fcn.0050bd90