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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
sub esp, 0xbc
push ebx
mov ebx, ecx
push esi
push edi
cmp eax, 0xffffffff
jne 0x477b06
lea eax, [esp + 0x78]
push eax
call fcn.00477eb0
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x477b17
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
movzx ecx, byte [ebx + 1]
test ecx, ecx
je 0x477b17
mov esi, dword [ebp + 0x10]
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
cmp eax, dword [0x4e82ac]
jbe 0x477b3b
push 0x4bfb90
push 0
push 0x4ddea0
mov ecx, ebx
call fcn.0043e770
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [0x4ea39c]
cmp eax, esi
jbe 0x477bcd
shr eax, 0xe
test dword [ebp + 0xc], 0x3fff
lea esi, [eax + 1]
cmove esi, eax
mov eax, dword [0x4ea3a0]
shl esi, 0xe
test eax, eax
je 0x477b81
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [0x4ea39c], 0x400000
jbe 0x477b81
dec dword [0x4ea398]
lea eax, [esi + esi]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, eax
add esp, 4
mov dword [0x4ea3a0], ecx
test ecx, ecx
jne 0x477bba
push 0x4bfb90
push eax
push str.Out_of_memory.
mov ecx, ebx
mov dword [0x4ea39c], eax
call fcn.0043e770
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
cmp esi, 0x400000
jbe 0x477bd3
inc dword [0x4ea398]
jmp 0x477bd3
mov ecx, dword [0x4ea3a0]
mov dl, byte [ebx + 1]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
mov dword [0x4ea3a0], 0
mov dword [0x4ea39c], 0
test dl, dl
jne 0x477c09
mov dword [0x4eb028], 0
jmp 0x477e03
mov esi, dword [esp + 0x1c]
mov dh, dl
sub esi, eax
mov dword [esp + 0x20], esi
xor esi, esi
test dl, dl
je 0x477dac
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [ebx + 8]
add eax, edi
mov dword [esp + 0x10], eax
cmp byte [eax + 1], 0
je 0x477c89
push dword [esp + 0x20]
mov eax, dword [esp + 0x7c]
mov ecx, ebx
mov dword [0x4eb028], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
xor eax, eax
cmp byte [ebx], 0x67
cmove eax, dword [ebp + 8]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.00474960
mov dword [esp + esi*4 + 0x28], eax
mov dword [esp + 0x20], 0
test eax, eax
je 0x477da3
mov ecx, dword [esp + 0xc]
jmp 0x477d88
mov dh, byte [eax]
cmp dh, 2
jne 0x477c9d
mov dword [esp + esi*4 + 0x28], 0x4bfb90
jmp 0x477d88
mov edi, dword [esp + esi*4 + 0x78]
test edi, edi
jne 0x477d04
movzx eax, dl
cmp esi, eax
jge 0x477cf4
test dh, dh
jne 0x477ccb
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
test edx, edx
je 0x477cf8
cmp dword [edx], edi
jne 0x477cd0
mov eax, dword [eax + 4]
mov dword [esp + esi*4 + 0x28], eax
jmp 0x477d88
cmp dh, 1
jne 0x477cf4
push 0
push esi
mov dword [esp + esi*4 + 0x30], ecx
push ecx
mov ecx, ebx
call fcn.00478110
mov ecx, eax
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x477d88
xor ebx, ebx
jmp 0x477e33
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + esi*4 + 0x28], eax
jmp 0x477d88
lea eax, [esp + 0x78]
mov ecx, ebx
push eax
push esi
push edi
call fcn.00478010
sub eax, 3
je 0x477d6a
sub eax, 1
jne 0x477ced
mov cl, byte [ebx]
lea eax, [ecx - 1]
cmp al, 6
ja 0x477d2a
cmp esi, 1
je 0x477d3e
cmp cl, 0x17
ja 0x477d34
cmp cl, 0xf
jae 0x477d3e
cmp cl, 0x6e
je 0x477d3e
cmp cl, 0x70
jne 0x477d5e
mov al, byte [edi + 0x17]
test al, al
jne 0x477d4b
mov eax, dword [edi + 0xc]
mov al, byte [eax + 0x17]
cmp al, 1
jne 0x477d5e
mov ecx, dword [esp + 0xc]
mov eax, 0x4bfb90
mov dword [esp + esi*4 + 0x28], eax
jmp 0x477d88
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esp + esi*4 + 0x28], eax
jmp 0x477d88
mov eax, dword [esp + 0xc]
mov ecx, edi
push eax
mov dword [esp + esi*4 + 0x2c], eax
call fcn.004a63e0
mov ecx, dword [esp + 0xc]
lea ecx, [ecx + eax*2]
add ecx, 2
mov dword [esp + 0xc], ecx
mov dl, byte [ebx + 1]
inc esi
add dword [esp + 0x14], 0x10
mov dh, dl
movzx eax, dl
cmp esi, eax
jge 0x477dac
mov edi, dword [esp + 0x14]
jmp 0x477c25
mov ebx, dword [esp + 0x24]
jmp 0x477e33
xor esi, esi
test dl, dl
je 0x477dd7
cmp dword [esp + esi*4 + 0x28], 0
jne 0x477dca
mov ecx, dword [esp + esi*4 + 0x78]
push 0
push 1
call fcn.004014f0
mov dword [esp + esi*4 + 0x28], eax
mov dl, byte [ebx + 1]
inc esi
movzx eax, dl
mov dh, dl
cmp esi, eax
jl 0x477db2
movzx eax, dl
test dl, dl
je 0x477e03
shl eax, 2
lea esi, [esp + 0x78]
mov ecx, eax
mov edi, 0x4eb028
shr ecx, 2
mov dl, dh
rep movsd dword es:[edi], dword [esi]
shr eax, 2
lea esi, [esp + 0x28]
mov ecx, eax
mov edi, 0x4eb080
rep movsd dword es:[edi], dword [esi]
movzx ecx, byte [ebx]
mov ebx, 1
lea eax, [ecx*8]
sub eax, ecx
movsx ecx, byte [eax*2 + 0x4e74d5]
movzx eax, dl
cmp eax, ecx
jge 0x477e33
lea edi, [eax*4 + 0x4eb080]
sub ecx, eax
mov eax, 0x4bfb90
rep stosd dword es:[edi], eax
cmp dword [esp + 0x18], 0
je 0x477e71
mov eax, dword [0x4ea3a0]
test eax, eax
je 0x477e5f
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [0x4ea39c], 0x400000
jbe 0x477e5f
dec dword [0x4ea398]
mov eax, dword [esp + 0x18]
mov dword [0x4ea3a0], eax
mov eax, dword [esp + 0x1c]
mov dword [0x4ea39c], eax
cmp dword [0x4ea39c], 0x400000
jbe 0x477e9e
push 0x44d020
push 0x2710
push 0xd
push dword [0x4e9814]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne byte [0x4e98bf]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc