Function at 0x401e88
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe80
push ebx
push esi
push edi
push 0x4021e2
push dword fs:[0]
mov dword fs:[0], esp
push 0xffffffffffffffff
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [0x40469c]
mov esi, eax
lea edi, [ebp - 0x158]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
cmp word [ebp - 0x158], 0x5a4d
jne 0x4021e2
mov eax, dword [0x40469c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x11c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov esi, eax
lea edi, [ebp - 0xfc]
mov ecx, 0x3e
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0xfc], 0x4550
jne 0x4021e2
cmp ebx, dword [ebp - 0xc8]
jne 0x401f20
mov eax, dword [ebp - 0xc8]
push eax
call dword [0x404698]
push 0x40
push 0x3000
mov eax, dword [ebp - 0xac]
push eax
mov eax, dword [ebp - 0xc8]
push eax
call dword [0x404690]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401f5d
push 0x40
push 0x3000
mov eax, dword [ebp - 0xac]
push eax
push 0
call dword [0x404690]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4021e2
push eax
push ecx
mov eax, dword fs:[0x30]
mov ecx, dword [ebp - 4]
mov dword [eax + 8], ecx
pop ecx
pop eax
mov ecx, dword [ebp - 0xa8]
mov edx, dword [0x40469c]
mov eax, dword [ebp - 4]
call fcn.00401cbc
movzx ebx, word [ebp - 0xf6]
dec ebx
test ebx, ebx
jb 0x40200e
inc ebx
xor esi, esi
mov edi, dword [0x40469c]
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x11c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
add eax, 0xf8
adc edx, 0
push edx
push eax
mov eax, esi
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x180]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [ebp - 0x170]
test eax, eax
jbe 0x40200a
mov edx, edi
add edx, dword [ebp - 0x16c]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x174]
xchg ecx, eax
call fcn.00401cbc
inc esi
dec ebx
jne 0x401f9b
mov eax, dword [ebp - 0x7c]
test eax, eax
jbe 0x4021e2
cmp dword [ebp - 0x78], 0
jbe 0x4021e2
mov edx, dword [ebp - 4]
add edx, eax
mov dword [ebp - 0x100], edx
jmp 0x4020e2
add edi, dword [ebp - 4]
push edi
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
cmp esi, 0xffffffff
je 0x4020db
mov eax, dword [ebp - 0x100]
cmp dword [eax], 0
je 0x402065
mov eax, dword [ebp - 0x100]
mov eax, dword [eax]
add eax, dword [ebp - 4]
mov dword [ebp - 0x104], eax
jmp 0x402077
mov eax, dword [ebp - 0x100]
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 4]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x100]
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 4]
mov dword [ebp - 0x108], eax
jmp 0x4020cf
test ebx, 0x80000000
je 0x4020ab
and ebx, 0xffff
push ebx
push esi
call dword [0x404694]
mov edx, dword [ebp - 0x108]
mov dword [edx], eax
jmp 0x4020c1
add ebx, dword [ebp - 4]
add ebx, 2
push ebx
push esi
call dword [0x404694]
mov edx, dword [ebp - 0x108]
mov dword [edx], eax
add dword [ebp - 0x104], 4
add dword [ebp - 0x108], 4
mov eax, dword [ebp - 0x104]
mov ebx, dword [eax]
test ebx, ebx
jne 0x40208b
add dword [ebp - 0x100], 0x14
mov eax, dword [ebp - 0x100]
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x402033
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc8]
je 0x4021d7
cmp dword [ebp - 0x5c], 0
jbe 0x4021d7
cmp dword [ebp - 0x58], 0
jbe 0x4021d7
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x5c]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x110], eax
jmp 0x4021c2
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x110]
add eax, 8
mov dword [ebp - 0x118], eax
mov ebx, dword [ebp - 0x114]
dec ebx
test ebx, ebx
jb 0x4021ad
inc ebx
mov eax, dword [ebp - 0x118]
movzx eax, word [eax]
shr eax, 0xc
cmp eax, 3
jne 0x40219b
mov edx, dword [ebp - 0x110]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
add edx, eax
mov ecx, dword [ebp - 0x118]
mov cx, word [ecx]
and cx, 0xfff
movzx ecx, cx
add edx, ecx
sub eax, dword [ebp - 0xc8]
add dword [edx], eax
mov eax, dword [ebp - 0x118]
add eax, 2
mov dword [ebp - 0x118], eax
dec ebx
jne 0x402162
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x110]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
sub eax, dword [ebp - 0x10c]
cmp eax, dword [ebp - 0x58]
jb 0x402133
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xd4]
jmp eax
push 0
call sub.kernel32.dll_ExitProcess_1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret