Function at 0x460800
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 0x460836
lea eax, [esp + 0x78]
push eax
call fcn.00460bd0
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x460847
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 0x460847
mov esi, dword [ebp + 0x10]
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
cmp eax, dword [0x4daaec]
jbe 0x46086b
push 0x4b70dc
push 0
push 0x4d2a38
mov ecx, ebx
call fcn.0042ff20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [0x4dcf24]
cmp eax, esi
jbe 0x4608fb
shr eax, 0xe
test dword [ebp + 0xc], 0x3fff
lea esi, [eax + 1]
cmove esi, eax
mov eax, dword [0x4dcf28]
shl esi, 0xe
test eax, eax
je 0x4608b0
push eax
call fcn.0049b8d4
add esp, 4
cmp dword [0x4dcf24], 0x400000
jbe 0x4608b0
dec dword [0x4dcf20]
lea eax, [esi + esi]
push eax
call fcn.004997ae
mov ecx, eax
add esp, 4
mov dword [0x4dcf28], ecx
test ecx, ecx
jne 0x4608e8
push 0x4b70dc
push eax
push str.Out_of_memory.
mov ecx, ebx
mov dword [0x4dcf24], eax
call fcn.0042ff20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
cmp esi, 0x400000
jbe 0x460901
inc dword [0x4dcf20]
jmp 0x460901
mov ecx, dword [0x4dcf28]
mov dl, byte [ebx + 1]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
mov dword [0x4dcf28], 0
mov dword [0x4dcf24], 0
test dl, dl
jne 0x460937
mov dword [0x4ddbb0], 0
jmp 0x460b25
mov esi, dword [esp + 0x1c]
mov dh, dl
sub esi, eax
mov dword [esp + 0x20], esi
xor esi, esi
test dl, dl
je 0x460ace
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 0x4609b7
push dword [esp + 0x20]
mov eax, dword [esp + 0x7c]
mov ecx, ebx
mov dword [0x4ddbb0], 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.0045d710
mov dword [esp + esi*4 + 0x28], eax
mov dword [esp + 0x20], 0
test eax, eax
je 0x460ac5
mov ecx, dword [esp + 0xc]
jmp 0x460aaa
mov dh, byte [eax]
cmp dh, 2
jne 0x4609cb
mov dword [esp + esi*4 + 0x28], 0x4b70dc
jmp 0x460aaa
mov edi, dword [esp + esi*4 + 0x78]
test edi, edi
jne 0x460a32
movzx eax, dl
cmp esi, eax
jge 0x460a22
test dh, dh
jne 0x4609f9
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
test edx, edx
je 0x460a26
cmp dword [edx], edi
jne 0x4609fe
mov eax, dword [eax + 4]
mov dword [esp + esi*4 + 0x28], eax
jmp 0x460aaa
cmp dh, 1
jne 0x460a22
push 0
push esi
mov dword [esp + esi*4 + 0x30], ecx
push ecx
mov ecx, ebx
call fcn.00460e50
mov ecx, eax
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x460aaa
xor ebx, ebx
jmp 0x460b55
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + esi*4 + 0x28], eax
jmp 0x460aaa
lea eax, [esp + 0x78]
mov ecx, ebx
push eax
push esi
push edi
call fcn.00460d30
sub eax, 3
je 0x460a8c
sub eax, 1
jne 0x460a1b
mov cl, byte [ebx]
lea eax, [ecx - 1]
cmp al, 6
ja 0x460a58
cmp esi, 1
je 0x460a60
sub cl, 0xf
cmp cl, 8
ja 0x460a80
mov al, byte [edi + 0x17]
test al, al
jne 0x460a6d
mov eax, dword [edi + 0xc]
mov al, byte [eax + 0x17]
cmp al, 1
jne 0x460a80
mov ecx, dword [esp + 0xc]
mov eax, 0x4b70dc
mov dword [esp + esi*4 + 0x28], eax
jmp 0x460aaa
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esp + esi*4 + 0x28], eax
jmp 0x460aaa
mov eax, dword [esp + 0xc]
mov ecx, edi
push eax
mov dword [esp + esi*4 + 0x2c], eax
call fcn.0047fed0
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 0x460ace
mov edi, dword [esp + 0x14]
jmp 0x460953
mov ebx, dword [esp + 0x24]
jmp 0x460b55
xor esi, esi
test dl, dl
je 0x460af9
cmp dword [esp + esi*4 + 0x28], 0
jne 0x460aec
mov ecx, dword [esp + esi*4 + 0x78]
push 0
push 1
call fcn.004014c0
mov dword [esp + esi*4 + 0x28], eax
mov dl, byte [ebx + 1]
inc esi
movzx eax, dl
mov dh, dl
cmp esi, eax
jl 0x460ad4
movzx eax, dl
test dl, dl
je 0x460b25
shl eax, 2
lea esi, [esp + 0x78]
mov ecx, eax
mov edi, 0x4ddbb0
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, 0x4ddc08
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 + 0x4d9d85]
movzx eax, dl
cmp eax, ecx
jge 0x460b55
lea edi, [eax*4 + 0x4ddc08]
sub ecx, eax
mov eax, 0x4b70dc
rep stosd dword es:[edi], eax
cmp dword [esp + 0x18], 0
je 0x460b92
mov eax, dword [0x4dcf28]
test eax, eax
je 0x460b80
push eax
call fcn.0049b8d4
add esp, 4
cmp dword [0x4dcf24], 0x400000
jbe 0x460b80
dec dword [0x4dcf20]
mov eax, dword [esp + 0x18]
mov dword [0x4dcf28], eax
mov eax, dword [esp + 0x1c]
mov dword [0x4dcf24], eax
cmp dword [0x4dcf24], 0x400000
jbe 0x460bbf
push 0x43dee0
push 0x2710
push 0xd
push dword [0x4dc424]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne byte [0x4dcd97]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc