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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ec9b0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x417270]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
cmp byte [ecx], 0
mov dword [esp + 0x20], ecx
jne 0x4b0b0a
lea edi, [ecx + 4]
push 0x400
mov ecx, edi
call fcn.004b0710
call fcn.004b03d0
mov esi, eax
mov eax, dword [esi + 4]
xor ebx, ebx
mov dword [esp + 0x24], esi
cmp eax, ebx
je 0x4b0887
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.0042ff20
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4b08a9
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.0042ff20
mov edx, dword [esi + 8]
push ebx
push ebx
push 0x11
push 0xfffffffffffffffe
call edx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4b08c0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.0042ff20
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x4b08d7
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.0042ff20
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x4b08ee
lea edx, [esp + 0x10]
push edx
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.0042ff20
mov esi, dword [esi + 0x3c]
cmp esi, ebx
je 0x4b0905
lea eax, [esp + 0x10]
push eax
mov ecx, edi
mov dword [esp + 0x14], esi
call fcn.0042ff20
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov eax, dword [eax + 0x80]
add eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], ecx
cmp eax, ebx
je 0x4b0b03
jmp 0x4b0936
mov ecx, dword [esp + 0x18]
xor ebx, ebx
add eax, ecx
mov ecx, eax
cmp eax, ebx
jne 0x4b0943
mov ecx, 0x4186a1
mov eax, ecx
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], 0
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4b0960
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.0042bda0
mov esi, 0x41c480
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x68]
mov dword [esp + 0x80], ebx
cmp eax, ebx
je 0x4b09a3
cmp dword [esp + 0x6c], 0x10
mov ecx, dword [esp + 0x58]
jae 0x4b099b
lea ecx, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.USER32.dll_CharLowerBuffA]
mov eax, 0x4206c0
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b09c0
sub eax, edx
push eax
push 0x4206c0
lea ecx, [esp + 0x34]
call fcn.0042bda0
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0x84], 1
call fcn.00457a30
test eax, eax
sete bl
cmp dword [esp + 0x44], 0x10
mov byte [esp + 0x80], 0
mov dword [esp + 0x28], esi
jb 0x4b0a17
mov edx, dword [esp + 0x30]
push edx
call fcn.004cada5
add esp, 4
test bl, bl
je 0x4b0aca
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
test eax, eax
jne 0x4b0a2c
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0x18]
add eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [eax]
test eax, eax
je 0x4b0aca
mov edx, eax
shr edx, 0x1f
test dl, 1
jne 0x4b0ab0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
lea eax, [eax + ecx + 2]
push eax
mov eax, dword [edx + 0x10]
push eax
call fcn.004b1fc0
mov ecx, dword [edi + 0xc]
add esp, 8
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x4b0a72
xor edx, edx
jmp 0x4b0a7a
mov edx, dword [edi + 0x14]
sub edx, ecx
sar edx, 2
mov esi, dword [edi + 0x10]
mov ebx, esi
sub ebx, ecx
sar ebx, 2
cmp ebx, edx
jae 0x4b0a92
mov dword [esi], eax
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x4b0ab0
cmp ecx, esi
jbe 0x4b0a9b
call fcn.004caf0d
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
push ecx
push esi
push eax
lea edx, [esp + 0x54]
push edx
mov ecx, edi
call fcn.0042ef40
mov eax, dword [esp + 0x10]
add eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [eax]
test eax, eax
jne 0x4b0a40
mov esi, 0x41c480
cmp dword [esp + 0x6c], 0x10
mov dword [esp + 0x80], 0xffffffff
mov dword [esp + 0x50], esi
jb 0x4b0aed
mov eax, dword [esp + 0x58]
push eax
call fcn.004cada5
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0x14
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4b0930
mov ecx, dword [esp + 0x20]
mov byte [ecx], 1
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004cb3aa
mov esp, ebp
pop ebp
ret