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

Disassembly:
sub esp, 0xb8
push ebx
push ebp
mov ebp, dword [esp + 0xc8]
mov ebx, ecx
push esi
push edi
cmp ebp, 0xffffffff
jne 0x476ca8
lea eax, [esp + 0x78]
push eax
call fcn.00477040
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x476cbd
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xb8
ret 0xc
movzx ecx, byte [ebx + 1]
test ecx, ecx
je 0x476cbd
mov esi, dword [esp + 0xd4]
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
cmp ebp, dword [0x4e5b84]
jbe 0x476ce5
push 0x4d0335
push 0
push str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
mov ecx, ebx
call fcn.00446d50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret 0xc
mov esi, dword [0x4e8468]
cmp ebp, esi
jbe 0x476d74
mov eax, ebp
shr eax, 0xe
test ebp, 0x3fff
lea esi, [eax + 1]
cmove esi, eax
mov eax, dword [0x4e846c]
shl esi, 0xe
test eax, eax
je 0x476d2b
push eax
call fcn.004b2343
add esp, 4
cmp dword [0x4e8468], 0x400000
jbe 0x476d2b
dec dword [0x4e8464]
push esi
call fcn.004b2c3e
mov ecx, eax
add esp, 4
mov dword [0x4e846c], ecx
test ecx, ecx
jne 0x476d64
push 0x4d0335
push eax
push str.Out_of_memory.
mov ecx, ebx
mov dword [0x4e8468], eax
call fcn.00446d50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret 0xc
cmp esi, 0x400000
jbe 0x476d7a
inc dword [0x4e8464]
jmp 0x476d7a
mov ecx, dword [0x4e846c]
mov dl, byte [ebx + 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
mov dword [0x4e846c], 0
mov dword [0x4e8468], 0
test dl, dl
jne 0x476db0
mov dword [0x4e90f8], 0
jmp 0x476f91
mov edi, dword [esp + 0x1c]
xor esi, esi
sub edi, ebp
mov dh, dl
mov dword [esp + 0x14], edi
test dl, dl
je 0x476f36
xor ebp, ebp
mov dword [esp + 0x20], ebp
nop dword [eax]
add ebp, dword [ebx + 8]
cmp byte [ebp + 1], 0
je 0x476e2d
mov eax, dword [esp + 0x78]
mov ecx, ebx
mov dword [0x4e90f8], eax
lea eax, [esp + 0x28]
push edi
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
xor eax, eax
cmp byte [ebx], 0x67
cmove eax, dword [esp + 0xe0]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.00474490
xor edi, edi
mov dword [esp + esi*4 + 0x28], eax
mov dword [esp + 0x14], edi
test eax, eax
je 0x47703a
mov ecx, dword [esp + 0x10]
jmp 0x476f1a
mov dh, byte [ebp]
cmp dh, 2
jne 0x476e42
mov dword [esp + esi*4 + 0x28], 0x4d0335
jmp 0x476f1a
mov edi, dword [esp + esi*4 + 0x78]
test edi, edi
jne 0x476e95
movzx eax, dl
cmp esi, eax
jge 0x476e60
test dh, dh
jne 0x476e6c
mov eax, dword [ebp + 8]
test eax, eax
je 0x476e60
cmp dword [eax], edi
jne 0x476e71
mov eax, dword [ebp + 4]
mov dword [esp + esi*4 + 0x28], eax
jmp 0x476f16
cmp dh, 1
jne 0x476e60
push 0
push esi
mov dword [esp + esi*4 + 0x30], ecx
push ecx
mov ecx, ebx
call fcn.004772b0
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x476f16
xor ebx, ebx
jmp 0x476fc1
lea eax, [esp + 0x78]
mov ecx, ebx
push eax
push esi
push edi
call fcn.004771b0
sub eax, 3
je 0x476efb
sub eax, 1
jne 0x476e8e
mov cl, byte [ebx]
lea eax, [ecx - 1]
cmp al, 6
ja 0x476ebb
cmp esi, 1
je 0x476ecf
cmp cl, 0x17
ja 0x476ec5
cmp cl, 0xf
jae 0x476ecf
cmp cl, 0x6e
je 0x476ecf
cmp cl, 0x70
jne 0x476eef
mov al, byte [edi + 0x17]
test al, al
jne 0x476edc
mov eax, dword [edi + 0xc]
mov al, byte [eax + 0x17]
cmp al, 1
jne 0x476eef
mov ecx, dword [esp + 0x10]
mov eax, 0x4d0335
mov dword [esp + esi*4 + 0x28], eax
jmp 0x476f16
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + esi*4 + 0x28], eax
jmp 0x476f16
mov eax, dword [esp + 0x10]
mov ecx, edi
push eax
mov dword [esp + esi*4 + 0x2c], eax
call fcn.0049eaa0
mov ecx, dword [esp + 0x10]
inc ecx
add ecx, eax
mov dword [esp + 0x10], ecx
mov edi, dword [esp + 0x14]
mov dl, byte [ebx + 1]
inc esi
mov ebp, dword [esp + 0x20]
mov dh, dl
add ebp, 0x10
movzx eax, dl
mov dword [esp + 0x20], ebp
cmp esi, eax
jl 0x476dd0
xor esi, esi
test dl, dl
je 0x476f65
nop dword [eax]
cmp dword [esp + esi*4 + 0x28], 0
jne 0x476f58
mov ecx, dword [esp + esi*4 + 0x78]
push 0
push 1
call fcn.00401680
mov dword [esp + esi*4 + 0x28], eax
mov dl, byte [ebx + 1]
inc esi
movzx eax, dl
mov dh, dl
cmp esi, eax
jl 0x476f40
movzx eax, dl
test dl, dl
je 0x476f91
shl eax, 2
lea esi, [esp + 0x78]
mov ecx, eax
mov edi, 0x4e90f8
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, 0x4e9148
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 + 0x4e4e3d]
movzx eax, dl
cmp eax, ecx
jge 0x476fc1
lea edi, [eax*4 + 0x4e9148]
sub ecx, eax
mov eax, 0x4d0335
rep stosd dword es:[edi], eax
cmp dword [esp + 0x18], 0
je 0x476ffe
mov eax, dword [0x4e846c]
test eax, eax
je 0x476fec
push eax
call fcn.004b2343
add esp, 4
cmp dword [0x4e8468], 0x400000
jbe 0x476fec
dec dword [0x4e8464]
mov eax, dword [esp + 0x18]
mov dword [0x4e846c], eax
mov eax, dword [esp + 0x1c]
mov dword [0x4e8468], eax
cmp dword [0x4e8468], 0x400000
jbe 0x47702b
push 0x4537c0
push 0x2710
push 0xd
push dword [0x4e7950]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne byte [0x4e8290]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xb8
ret 0xc
mov ebx, dword [esp + 0x24]
jmp 0x476fc1