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

Disassembly:
push ebp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x9c
mov ebp, dword [esp + 0xb0]
mov dword [esp], ebp
call fcn.00417aa0
cmp eax, ebx
jle 0x501070
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.00417ac0
mov ecx, dword [eax]
mov edi, dword [ecx]
lea edx, [edi - 2]
cmp edx, 1
jbe 0x500cf8
xor eax, eax
jmp 0x5010ad
mov eax, dword [eax + 4]
cmp dword [eax], 1
je 0x500d08
add ebx, 1
jmp 0x500cc3
mov eax, dword [eax + 4]
mov edx, dword [ecx + 8]
mov dword [esp + 0x34], eax
test edx, edx
je 0x5010b8
movzx eax, word [edx]
rol ax, 8
movzx edx, ax
cmp ax, 1
je 0x501050
cmp edx, 2
mov eax, 0xffffffff
mov edx, 0xf
mov ecx, 0
mov edi, 0x10
cmovne edx, eax
cmovne edi, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.00417bc0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0xb0], ebp
lea esi, [eax - 1]
mov dword [esp + 0x2c], esi
lea esi, [eax - 2]
mov dword [esp + 0x30], esi
lea esi, [eax - 3]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], esi
xor esi, esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.00417aa0
sub eax, 1
cmp esi, eax
jge 0x5010cf
mov eax, dword [esp + 0x14]
mov dword [esp + 4], esi
lea ebx, [esi + 1]
mov dword [esp], eax
call fcn.00417ac0
mov dword [esp + 4], ebx
mov dword [esp + 0x28], eax
mov ebp, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], ebx
mov dword [esp], eax
call fcn.00417ac0
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x60]
lea edx, [esp + 0x50]
mov dword [esp + 0x1c], eax
mov eax, ebp
mov dword [esp], ebx
call fcn.004ff190
test eax, eax
je 0x500ceb
mov ecx, dword [esp + 0x18]
lea ebx, [esp + 0x70]
mov eax, dword [esp + 0x1c]
mov edx, ebx
mov dword [esp], ecx
lea ecx, [esp + 0x80]
call fcn.004ff190
test eax, eax
je 0x500ceb
lea eax, [esp + 0x60]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
lea eax, [esp + 0x50]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jg 0x500ceb
lea eax, [esp + 0x80]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_memcmp
test eax, eax
jg 0x500ceb
lea eax, [esp + 0x60]
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jns 0x500ceb
mov ecx, dword [esp + 0x24]
cmp ecx, 0xffffffff
je 0x500fd0
movzx eax, byte [esp + ecx + 0x70]
lea edx, [eax - 1]
mov byte [esp + ecx + 0x70], dl
test al, al
jne 0x500fa6
mov ebp, dword [esp + 0x2c]
movzx eax, byte [esp + ebp + 0x70]
lea edx, [eax - 1]
mov byte [esp + ebp + 0x70], dl
test al, al
jne 0x500fa6
mov ebp, dword [esp + 0x30]
movzx eax, byte [esp + ebp + 0x70]
lea edx, [eax - 1]
mov byte [esp + ebp + 0x70], dl
test al, al
jne 0x500fa6
mov ebp, dword [esp + 0x38]
movzx eax, byte [esp + ebp + 0x70]
lea edx, [eax - 1]
mov byte [esp + ebp + 0x70], dl
test al, al
jne 0x500fa6
cmp ecx, 3
je 0x500fa6
movzx eax, byte [esp + 0x7b]
lea edx, [eax - 1]
mov byte [esp + 0x7b], dl
test al, al
jne 0x500fa6
movzx eax, byte [esp + 0x7a]
lea edx, [eax - 1]
mov byte [esp + 0x7a], dl
test al, al
jne 0x500fa6
movzx eax, byte [esp + 0x79]
lea edx, [eax - 1]
mov byte [esp + 0x79], dl
test al, al
jne 0x500fa6
movzx eax, byte [esp + 0x78]
lea edx, [eax - 1]
mov byte [esp + 0x78], dl
test al, al
jne 0x500fa6
movzx eax, byte [esp + 0x77]
lea edx, [eax - 1]
mov byte [esp + 0x77], dl
test al, al
jne 0x500fa6
movzx eax, byte [esp + 0x76]
lea edx, [eax - 1]
mov byte [esp + 0x76], dl
test al, al
jne 0x500fa6
movzx eax, byte [esp + 0x75]
lea edx, [eax - 1]
mov byte [esp + 0x75], dl
test al, al
jne 0x500fa6
movzx eax, byte [esp + 0x74]
lea edx, [eax - 1]
mov byte [esp + 0x74], dl
test al, al
jne 0x500fa6
movzx eax, byte [esp + 0x73]
lea edx, [eax - 1]
mov byte [esp + 0x73], dl
test al, al
jne 0x500fa6
movzx eax, byte [esp + 0x72]
lea edx, [eax - 1]
mov byte [esp + 0x72], dl
test al, al
jne 0x500fa6
movzx eax, byte [esp + 0x71]
lea edx, [eax - 1]
mov byte [esp + 0x71], dl
test al, al
jne 0x500fa6
sub byte [esp + 0x70], 1
lea eax, [esp + 0x60]
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x500fd0
mov esi, dword [esp + 0x20]
jmp 0x500d8d
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x80]
lea edx, [esp + 0x50]
mov dword [esp], eax
lea eax, [esp + 0x4c]
call fcn.004fdd90
test eax, eax
je 0x500ceb
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00417af0
mov eax, dword [esp + 0x20]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004170f0
mov eax, dword [esp + 0x28]
mov dword [esp + 4], 0x68d93c
mov dword [esp], eax
call fcn.00445f00
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], 0x68d93c
mov dword [esp], eax
call fcn.00445f00
mov dword [esp + 0x20], esi
jmp 0x500fbe
mov dword [esp + 0x24], 3
mov edi, 4
mov dword [esp + 0x18], 4
jmp 0x500d53
mov eax, dword [esp + 0xb0]
mov dword [esp + 4], 0x4fda80
mov dword [esp], eax
call fcn.004165e0
mov eax, dword [esp + 0xb0]
mov dword [esp], eax
call fcn.00417bc0
mov eax, dword [esp + 0xb0]
mov dword [esp], eax
call fcn.00500170
test eax, eax
setne al
movzx eax, al
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x24], 0xffffffff
xor edi, edi
mov dword [esp + 0x18], 0
jmp 0x500d53
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0xb0]
mov dword [esp], esi
call fcn.00417aa0
mov dword [esp], esi
sub eax, 1
mov dword [esp + 4], eax
call fcn.00417ac0
test eax, eax
je 0x500d00
cmp dword [eax], 1
jne 0x500d00
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x80]
lea edx, [esp + 0x70]
mov dword [esp], ecx
mov ecx, esi
call fcn.004ff190
test eax, eax
je 0x500ceb
lea edx, [esp + 0x70]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], edx
call sub.msvcrt.dll_memcmp
test eax, eax
jle 0x500d00
jmp 0x500ceb