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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x505f42
sub esp, 0x48
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x54]
xor ebx, ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
cmp byte [esp + 0x58], 0
je 0x505c35
mov ecx, edi
mov eax, dword [esp + 0x50]
mov ebx, eax
inc ebx
cmp ebx, esi
ja 0x505f0c
mov dword [esp + 0x50], ebx
mov ebx, ecx
add ebx, eax
mov byte [ebx], 0x2d
mov ebx, dword [esp + 0x6c]
cmp ebx, 0
jle 0x505eba
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
cmp ecx, eax
jge 0x505c50
mov eax, ecx
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x64]
cmp eax, ecx
ja 0x505eb3
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x4c], edi
mov edx, dword [esp + 0x50]
mov dword [esp + 0x54], esi
mov eax, esi
mov ebx, dword [esp + 0x40]
mov ecx, edx
add ecx, ebx
cmp ecx, esi
jbe 0x505cc6
mov dword [esp], 0x5c5920
mov dword [esp + 0x30], edi
mov dword [esp + 4], edi
mov dword [esp + 0x34], edx
mov dword [esp + 8], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], ecx
call fcn.0043d700
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
cmp ecx, eax
ja 0x505eac
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x50]
mov ebp, edi
mov dword [esp + 0x30], edi
add ebp, ebx
mov dword [esp], ebp
mov ebx, dword [esp + 0x3c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.00454a30
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x24]
cmp eax, ebx
jle 0x505d4b
mov dword [esp + 0x4c], edi
mov edx, edi
mov dword [esp + 0x50], ecx
mov ebx, ecx
mov dword [esp + 0x54], esi
mov eax, ecx
inc ebx
cmp ebx, esi
ja 0x505e7a
mov ecx, ebx
mov ebx, edx
add ebx, eax
mov byte [ebx], 0x30
mov ebx, dword [esp + 0x24]
inc ebx
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x24]
cmp eax, ebx
jg 0x505d12
mov ebx, dword [esp + 0x74]
cmp ebx, 0
jle 0x505dff
mov dword [esp + 0x4c], edi
mov edx, edi
mov dword [esp + 0x50], ecx
mov ebx, ecx
mov dword [esp + 0x54], esi
mov eax, ecx
inc ebx
cmp ebx, esi
ja 0x505e48
mov ecx, ebx
mov ebx, edx
add ebx, eax
mov byte [ebx], 0x2e
mov dword [esp + 0x28], 0
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x74]
cmp ebx, ebp
jge 0x505dff
mov byte [esp + 0x23], 0x30
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x28]
cmp eax, 0
jl 0x505dc4
mov edx, dword [esp + 0x68]
cmp edx, eax
jle 0x505dc4
mov ebp, dword [esp + 0x60]
cmp eax, ebp
jae 0x505e41
mov ebp, dword [esp + 0x5c]
add ebp, eax
movzx ebx, byte [ebp]
mov byte [esp + 0x23], bl
mov dword [esp + 0x4c], edi
mov edx, edi
mov dword [esp + 0x50], ecx
mov ebx, ecx
mov dword [esp + 0x54], esi
mov eax, ecx
inc ebx
cmp ebx, esi
ja 0x505e12
mov ecx, ebx
mov ebx, edx
add ebx, eax
movzx ebp, byte [esp + 0x23]
xchg ebp, eax
mov byte [ebx], al
xchg ebp, eax
mov ebx, dword [esp + 0x28]
inc ebx
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x74]
cmp ebx, ebp
jl 0x505d90
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], esi
add esp, 0x48
ret
mov dword [esp], 0x5c5920
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.0043d700
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ecx, eax
inc ecx
mov edi, edx
jmp 0x505ddd
call fcn.00429b10
ud2
mov dword [esp], 0x5c5920
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.0043d700
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ecx, eax
inc ecx
mov edi, edx
jmp 0x505d75
mov dword [esp], 0x5c5920
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.0043d700
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ecx, eax
inc ecx
mov edi, edx
jmp 0x505d2f
call fcn.00429b80
ud2
call fcn.00429b80
ud2
mov dword [esp + 0x4c], edi
mov edx, edi
mov eax, dword [esp + 0x50]
mov dword [esp + 0x54], esi
mov ebx, eax
inc ebx
cmp ebx, esi
ja 0x505edd
mov ecx, ebx
mov ebx, edx
add ebx, eax
mov byte [ebx], 0x30
jmp 0x505d4b
mov dword [esp], 0x5c5920
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.0043d700
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ecx, eax
inc ecx
mov edi, edx
jmp 0x505ed1
mov dword [esp], 0x5c5920
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.0043d700
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebx, eax
inc ebx
mov dword [esp + 0x50], ebx
mov edi, ecx
jmp 0x505c2e
call fcn.00452240
jmp fcn.00505be0