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

Disassembly:
mov ecx, dword [0x98cddc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x50d35e
sub esp, 0x74
mov edx, dword [esp + 0x78]
mov ebx, dword [edx]
movzx ebx, byte [ebx + 0x49]
cmp bl, 0xff
je 0x50ced1
mov byte [edx + 0x44], 0
mov ebp, dword [edx + 0x4c]
xor eax, eax
jmp 0x50cee8
mov byte [esp + 0x88], 0
add esp, 0x74
ret
mov esi, dword [edx + 0x48]
mov dword [esi + eax*4], 0xffffffff
inc eax
cmp eax, ebp
jge 0x50cef8
mov ecx, dword [edx + 0x4c]
cmp eax, ecx
jb 0x50cedd
jmp 0x50d358
mov byte [esp + 0x2b], bl
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x80]
mov dword [esp], edx
mov ebx, dword [esp + 0x84]
mov dword [esp + 4], ebx
call ecx
mov eax, dword [esp + 8]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x30], ecx
cmp eax, 0xffffffff
jne 0x50cf38
mov edx, 0xffffffff
xor ebx, ebx
jmp 0x50cf6e
mov eax, dword [esp + 0x7c]
mov edx, dword [eax + 0x1c]
mov ebx, dword [esp + 0x80]
mov dword [esp], ebx
mov ebp, dword [esp + 0x84]
lea esi, [ebp + ecx]
mov dword [esp + 4], esi
call edx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, eax
mov ebx, ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov ebp, dword [esp + 0x84]
test ebp, ebp
jne 0x50cf97
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0xffffffff
jmp 0x50cfdd
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x80]
mov dword [esp], edx
mov dword [esp + 4], ebp
call ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0x78]
lea edi, [esi + 8]
add esi, 0x20
jmp 0x50d00c
movzx ebp, byte [esp + 0x2b]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x44]
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x64]
mov edx, ecx
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], edi
mov esi, dword [edi + 0x10]
test esi, esi
jne 0x50d13b
movzx esi, byte [esp + 0x2b]
xchg esi, eax
test al, 4
xchg esi, eax
je 0x50d033
test ebp, ebp
jne 0x50d25d
mov esi, dword [esp + 0x78]
movzx edi, byte [esi + 0x44]
xchg edi, eax
test al, al
xchg edi, eax
jne 0x50d271
mov dword [esp + 0x60], ebp
mov edi, dword [esi]
mov esi, dword [edi + 0x28]
test esi, esi
je 0x50d09b
cmp dword [edi + 0x38], edx
jne 0x50d05b
xor esi, esi
jmp 0x50d09d
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x80]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x60]
mov esi, eax
mov eax, dword [esp + 0x50]
jmp 0x50d09d
xor esi, esi
xchg esi, eax
test al, al
xchg esi, eax
je 0x50d137
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 0x78]
mov ebx, dword [edx]
mov esi, dword [esp + 0x80]
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call ecx
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x50d263
mov ecx, dword [esp + 0x60]
add eax, ecx
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 0x1c]
mov ebx, dword [esp + 0x80]
mov dword [esp], ebx
mov dword [esp + 4], eax
call edx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 0x1c]
mov ebx, dword [esp + 0x4c]
lea ebp, [ebx + eax]
mov esi, dword [esp + 8]
mov dword [esp + 0x38], esi
mov edi, dword [esp + 0x80]
mov dword [esp], edi
mov dword [esp + 4], ebp
call edx
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x38], edx
mov esi, dword [esp + 0x78]
movzx ebx, byte [esi + 0x44]
test bl, bl
jne 0x50d1be
mov dword [esp + 0x48], eax
mov ebx, dword [esi + 0x4c]
test ebx, ebx
je 0x50d163
mov ebx, dword [esi + 0x48]
mov dword [ebx], ebp
mov dword [esp + 0x44], ebp
mov eax, dword [esi + 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x4c]
mov ebx, dword [esi + 0x50]
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
call fcn.0050d880
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp], esi
mov dword [esp + 4], edi
mov ebx, dword [esp + 0x68]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
add ebp, ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x18], eax
call fcn.0050d370
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x50d26d
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x4c]
test ecx, ecx
jne 0x50d20f
movzx ecx, byte [eax + 0x44]
test cl, cl
jne 0x50d269
mov ecx, dword [esp + 0x38]
cmp ecx, 0xffffffff
jne 0x50d223
mov edx, ecx
mov ebx, dword [esp + 0x30]
jmp 0x50cfe9
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x80]
mov dword [esp], edx
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x44]
lea esi, [ebp + ebx]
mov dword [esp + 4], esi
call ecx
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x78]
mov ecx, edx
mov edx, dword [esp + 0x38]
jmp 0x50cfe9
mov esi, dword [esp + 0x78]
jmp 0x50d271
mov esi, dword [esp + 0x78]
jmp 0x50d271
mov esi, eax
jmp 0x50d271
mov esi, dword [esp + 0x78]
nop
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x70], ecx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x60], edx
xor ebx, ebx
jmp 0x50d289
inc ebx
cmp ebx, edx
jge 0x50d342
lea ebp, [ecx + ebx*8]
mov ebp, dword [ebp + 4]
test ebp, ebp
je 0x50d288
mov edi, dword [esi + 0x40]
mov eax, dword [esi + 0x3c]
inc eax
mov ecx, dword [esi + 0x38]
cmp edi, eax
jae 0x50d312
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x6c], ebp
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov dword [esp + 0xc], 1
lea eax, [0x6d0440]
mov dword [esp + 0x10], eax
call fcn.0046cad0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x78]
mov dword [ebx + 0x40], eax
mov eax, dword [0x98d0b8]
test eax, eax
je 0x50d2fd
call fcn.00471ac0
mov dword [edi], ecx
mov eax, dword [ebx + 0x38]
mov dword [edi + 4], eax
mov dword [ebx + 0x38], ecx
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x6c]
mov esi, dword [esp + 0x78]
mov eax, edx
mov edx, dword [esp + 0x60]
mov dword [esi + 0x3c], eax
mov edi, dword [0x98d0b8]
test edi, edi
je 0x50d331
call fcn.00471ac0
mov dword [edi], ebp
mov esi, dword [ecx + eax*4 - 4]
mov dword [edi + 4], esi
mov esi, dword [esp + 0x78]
mov dword [ecx + eax*4 - 4], ebp
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x70]
jmp 0x50d288
mov dword [eax + 0x10], 0
movzx eax, byte [esi + 0x44]
mov byte [esp + 0x88], al
add esp, 0x74
ret
call fcn.00471b30
nop
call fcn.004706b0
jmp fcn.0050cea0