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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov edi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4b5dbf
mov al, byte [edx]
xor esi, esi
add ecx, edx
mov dword [esp + 0x28], edi
xor ebx, ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
inc esi
mov ecx, edx
mov dword [esp + 0x18], esi
mov byte [esp + 1], al
movzx eax, al
mov edi, eax
test bl, 1
je 0x4b5d6b
cmp ecx, dword [esp + 8]
jne 0x4b5d77
jmp 0x4b5d8e
mov ebx, dword [esp + 8]
sub ebx, ecx
cmp ebx, esi
jbe 0x4b5d8e
add ecx, esi
mov ebx, dword [esp + 0x18]
movzx edx, byte [ecx]
inc ecx
xor esi, esi
add ebx, ebx
lea edi, [edx + edi*2]
mov dword [esp + 0x18], ebx
mov bl, 1
jmp 0x4b5d5e
mov ecx, dword [ebp + 8]
cmp ecx, 2
jae 0x4b5dd9
mov al, byte [esp + 1]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x78], 0x45df1d
mov byte [esp + 0x48], al
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edx
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 4]
jmp 0x4b6037
mov dword [esp + 0x78], 0x40569f
and dword [esp + 0x70], 0
mov dword [esp + 0x74], 1
jmp 0x4b6037
mov ecx, dword [esp + 4]
movzx ecx, byte [ecx + 1]
mov dl, byte [ecx + str.743210_._g]
cmp dl, byte [eax + str.743210_._g]
jae 0x4b5e05
mov al, byte [esp + 1]
mov bl, 1
xor edx, edx
mov dword [esp + 0x14], 0
mov byte [esp + 1], cl
jmp 0x4b5e13
mov dword [esp + 0x14], 0
mov dl, 1
xor ebx, ebx
mov eax, ecx
mov dword [esp + 0x38], edi
push 2
pop ecx
mov esi, dword [esp + 4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x24], 0xff
mov dword [esp + 0x10], 0
mov ecx, edx
mov byte [esp + 2], dl
movzx edx, byte [esp + 1]
mov ecx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x44], edx
mov edi, dword [esp + 0x14]
movzx eax, al
mov dword [esp + 0x3c], eax
mov eax, esi
test byte [esp + 0x10], 1
je 0x4b5e82
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4b5f86
xor edx, edx
cmp eax, dword [esp + 8]
setne cl
je 0x4b5f86
mov dl, cl
dec esi
mov ebx, edi
lea ecx, [eax + edx]
add edx, edi
jmp 0x4b5eb3
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
cmp esi, edx
jbe 0x4b5f86
mov ecx, dword [esp + 8]
sub ecx, eax
cmp ecx, edx
jbe 0x4b5f86
mov ecx, edx
lea ebx, [edx + edi]
not ecx
add esi, ecx
lea ecx, [eax + edx + 1]
add eax, edx
lea edx, [edx + edi + 1]
mov dword [esp + 0x20], ecx
test eax, eax
je 0x4b5f86
mov dword [esp + 0x14], edx
movzx edx, byte [eax]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], esi
mov cl, byte [edx + str.743210_._g]
cmp cl, byte [eax + str.743210_._g]
jb 0x4b5f4a
mov dword [esp + 0x40], edx
cmp dl, byte [esp + 1]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
mov al, 1
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, esi
mov edi, edx
je 0x4b5e54
mov eax, dword [esp + 0x3c]
mov edi, edx
cmp cl, byte [eax + str.743210_._g]
mov eax, esi
jae 0x4b5e54
xor ecx, ecx
cmp ebx, 0x100
mov edx, 0x5b9950
setae cl
call fcn.00472b9b
mov al, 1
mov dword [esp + 0xc], 0
mov byte [esp + 2], bl
mov dword [esp + 0x10], eax
mov eax, ebx
mov eax, dword [esp + 0x40]
jmp 0x4b5e47
xor ecx, ecx
cmp ebx, 0x100
mov esi, edx
mov edx, 0x5b9960
setae cl
call fcn.00472b9b
mov al, 1
mov ecx, esi
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov al, byte [esp + 1]
mov byte [esp + 1], cl
jmp 0x4b5e32
mov cl, byte [esp + 2]
mov eax, dword [esp + 0x1c]
cmp al, cl
mov byte [esp + 0x2c], cl
mov byte [esp + 3], al
je 0x4b606b
mov edx, dword [ebp + 8]
mov esi, dword [esp + 0x38]
movzx ecx, al
cmp ecx, edx
jae 0x4b6052
mov eax, dword [esp + 4]
mov al, byte [eax + ecx]
movzx ebx, al
cmp byte [ebx + str.743210_._g], 0xfa
jbe 0x4b5fce
and dword [esp + 0x2c], 0
mov ebx, dword [esp + 4]
jmp 0x4b6013
movzx edx, byte [esp + 2]
mov byte [esp + 8], al
cmp edx, dword [ebp + 8]
jae 0x4b6059
mov edi, dword [esp + 4]
mov eax, edx
shl ebx, 0x10
mov dword [esp + 0x2c], 0x45e6a1
shl eax, 8
or ebx, eax
movzx eax, byte [edi + edx]
shl eax, 0x18
or eax, ebx
mov ebx, edi
or eax, ecx
mov dword [esp + 0x30], eax
mov al, byte [esp + 8]
mov byte [esp + 0x34], al
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x35], al
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x48]
mov edx, ebx
push eax
push dword [esp + 0x1c]
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004055f3
mov ecx, esi
add esp, 0x10
mov edi, dword [esp + 0x28]
mov edx, ebx
and dword [edi + 0x38], 0
mov dword [edi + 0x3c], edx
mov dword [edi + 0x40], ecx
push 0xe
pop ecx
lea esi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5b99f0
jmp 0x4b6063
mov ecx, edx
mov edx, dword [ebp + 8]
push 0x5b9970
call fcn.00580e40
pop eax
ud2
lea eax, [esp + 0x48]
lea esi, [esp + 0x2c]
lea edx, [esp + 3]
and dword [eax], 0
xor ecx, ecx
inc ecx
push 0x5b9940
push eax
push esi
call fcn.00580ac0
add esp, 0xc
ud2