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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x50d495
sub esp, 0x80
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x60], ebx
mov eax, dword [esp + 0x90]
mov dword [esp + 0x64], eax
cmp eax, 0
jne 0x50d48b
xor eax, eax
cmp al, 0
jne 0x50d1d2
mov eax, dword [esp + 0x84]
cmp eax, 0
je 0x50d1cb
mov ebx, 0x5f76ac
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 5
mov dword [esp + 0x34], eax
mov ecx, dword [eax]
mov ebp, dword [eax + 4]
mov dword [esp + 0x78], ebp
mov ebp, dword [eax + 8]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x68], ecx
mov esi, dword [esp + 0x78]
mov dword [esp + 0x7c], ebp
mov ecx, ebp
mov ebx, dword [esp + 0x50]
mov edi, esi
add esi, ebx
cmp esi, ebp
jbe 0x50d160
mov dword [esp], 0x5c5920
mov ebx, dword [esp + 0x68]
mov dword [esp + 4], ebx
mov dword [esp + 0x6c], edi
mov dword [esp + 8], edi
mov dword [esp + 0x70], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], esi
call fcn.0043d700
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x70], ecx
cmp esi, ecx
ja 0x50d1c4
mov dword [esp + 0x6c], esi
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x68]
add ebp, ebx
mov dword [esp], ebp
mov ebx, dword [esp + 0x4c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.00454a30
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x6c]
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0x70]
mov dword [ebx + 8], ebp
mov ebp, dword [esp + 0x68]
cmp byte [0x6dbe18], 0
jne 0x50d1b6
mov dword [ebx], ebp
add esp, 0x80
ret
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.00410660
jmp 0x50d1af
call fcn.00429b80
ud2
mov dword [eax], eax
jmp 0x50d0e1
mov ebx, dword [esp + 0x84]
cmp ebx, 0
je 0x50d484
mov byte [esp + 0x23], 0x3f
mov dword [esp + 0x30], ebx
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ebp, eax
inc ebp
cmp ebp, edx
ja 0x50d415
mov dword [ebx + 4], ebp
mov ebx, ecx
add ebx, eax
movzx ebp, byte [esp + 0x23]
xchg ebp, eax
mov byte [ebx], al
xchg ebp, eax
mov ebx, dword [esp + 0x84]
cmp ebx, 0
je 0x50d40e
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x88]
mov dword [esp], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x90]
mov dword [esp + 8], ebx
call fcn.00539660
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov dword [esp], eax
mov dword [esp + 0x54], ecx
mov ebx, dword [ecx + 0x84]
call ebx
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov ebx, dword [esp + 0x3c]
cmp ebx, 0
je 0x50d407
mov ecx, dword [ebx]
mov ebp, dword [ebx + 4]
mov dword [esp + 0x78], ebp
mov ebp, dword [ebx + 8]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x68], ecx
mov esi, dword [esp + 0x78]
mov dword [esp + 0x7c], ebp
mov ecx, ebp
mov ebx, dword [esp + 0x48]
mov edi, esi
add esi, ebx
cmp esi, ebp
jbe 0x50d2e9
mov dword [esp], 0x5c5920
mov ebx, dword [esp + 0x68]
mov dword [esp + 4], ebx
mov dword [esp + 0x6c], edi
mov dword [esp + 8], edi
mov dword [esp + 0x70], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], esi
call fcn.0043d700
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x70], ecx
cmp esi, ecx
ja 0x50d400
mov dword [esp + 0x6c], esi
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x68]
add ebp, ebx
mov dword [esp], ebp
mov ebx, dword [esp + 0x44]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.00454a30
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x6c]
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0x70]
mov dword [ebx + 8], ebp
mov ebp, dword [esp + 0x68]
cmp byte [0x6dbe18], 0
jne 0x50d3ef
mov dword [ebx], ebp
mov ebx, dword [esp + 0x84]
cmp ebx, 0
je 0x50d3e8
mov byte [esp + 0x22], 0x3f
mov dword [esp + 0x38], ebx
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ebp, eax
inc ebp
cmp ebp, edx
ja 0x50d37f
mov dword [ebx + 4], ebp
mov ebx, ecx
add ebx, eax
movzx ebp, byte [esp + 0x22]
xchg ebp, eax
mov byte [ebx], al
xchg ebp, eax
add esp, 0x80
ret
mov dword [esp], 0x5c5920
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.0043d700
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x38]
cmp ebx, 0
je 0x50d3e4
mov ebp, eax
mov dword [esp + 0x24], eax
inc ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], edx
mov dword [esp + 0x40], ecx
cmp byte [0x6dbe18], 0
jne 0x50d3ce
mov dword [ebx], ecx
jmp 0x50d36b
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.00410660
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
jmp 0x50d36b
mov dword [ebx], eax
jmp 0x50d3b0
mov dword [ebx], eax
jmp 0x50d350
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.00410660
jmp 0x50d340
call fcn.00429b80
ud2
mov dword [ebx], eax
jmp 0x50d27f
mov dword [ebx], eax
jmp 0x50d21e
mov dword [esp], 0x5c5920
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.0043d700
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x30]
cmp ebx, 0
je 0x50d480
mov ebp, eax
mov dword [esp + 0x28], eax
inc ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], edx
mov dword [esp + 0x40], ecx
cmp byte [0x6dbe18], 0
jne 0x50d467
mov dword [ebx], ecx
jmp 0x50d201
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.00410660
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
jmp 0x50d201
mov dword [ebx], eax
jmp 0x50d446
mov dword [ebx], eax
jmp 0x50d1e2
mov eax, 1
jmp 0x50d0c8
call fcn.00452240
jmp fcn.0050d080