Function at 0x10005540
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004f284
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 0x40000
push 2
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 0x40], eax
je 0x10005bef
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x10005bef
push 0x10
call fcn.10047121
add esp, 4
mov dword [ebp - 0x2c], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x100055b2
mov ecx, eax
call fcn.10047155
mov esi, eax
jmp 0x100055b4
xor esi, esi
or edi, 0xffffffff
push 0x10
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], esi
call fcn.10047121
add esp, 4
mov dword [ebp - 0x2c], eax
cmp eax, ebx
mov dword [ebp - 4], 1
je 0x100055e3
mov ecx, eax
call fcn.10047155
mov ebx, eax
jmp 0x100055e5
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
push 0
push 0x8000
push ecx
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], ebx
call dword [eax + 0x20]
cmp dword [esi + 4], edi
je 0x10005bc0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
mov ecx, dword [ebp + 8]
push 0
mov dword [ebp - 0x30], eax
mov eax, dword [ebx]
push 0x8002
push ecx
mov ecx, ebx
call dword [eax + 0x20]
cmp dword [ebx + 4], edi
je 0x10005baf
mov edx, dword [ebx]
lea eax, [ebp - 0x168]
push 0x40
push eax
mov ecx, ebx
call dword [edx + 0x34]
cmp eax, 0x40
jne 0x10005b96
mov edx, dword [ebp - 0x12c]
xor ecx, ecx
cmp word [ebp - 0x168], 0x5a4d
push 0
setne cl
dec ecx
and ecx, edx
mov edx, dword [ebx]
mov edi, ecx
mov ecx, ebx
push edi
mov dword [ebp - 0x3c], edi
call dword [edx + 0x28]
mov eax, dword [ebx]
lea ecx, [ebp - 0x168]
push 0xf8
push ecx
mov ecx, ebx
call dword [eax + 0x34]
cmp eax, 0xf8
jne 0x10005b96
cmp dword [ebp - 0x168], 0x4550
jne 0x10005b7d
mov edx, dword [ebp - 0x130]
mov esi, dword [ebp - 0x162]
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x38], edx
mov edx, dword [ebx]
and esi, 0xffff
mov ecx, ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x2c], eax
mov dword [ebp + 8], 0
call dword [edx + 0x30]
test eax, eax
mov dword [ebp + 0xc], eax
jbe 0x10005b7d
mov eax, dword [ebp - 0xd0]
test eax, eax
jne 0x10005b64
mov eax, dword [ebp - 0x154]
lea ecx, [esi + esi*4]
and eax, 0xffff
push 0
lea edx, [eax + ecx*8]
lea eax, [eax + edi + 0x18]
push eax
lea ecx, [edx + edi + 0x18]
mov edx, dword [ebx]
mov dword [ebp - 0x18], ecx
mov ecx, ebx
call dword [edx + 0x28]
mov eax, dword [ebp - 0x1c]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [ebp - 0x1c], eax
je 0x10005782
call fcn.1000e8d0
mov edx, dword [ebx]
lea eax, [ebp - 0x168]
push 0x28
push eax
mov ecx, ebx
call dword [edx + 0x34]
cmp eax, 0x28
jne 0x10005b96
mov ecx, 2
mov edi, str.actdlvry
lea esi, [ebp - 0x168]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x10005761
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x160]
add eax, ecx
mov ecx, dword [ebp + 8]
cmp ecx, eax
jae 0x10005706
mov dword [ebp + 8], eax
jmp 0x10005706
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], 9
mov esi, dword [ebp - 0x14]
mov edx, dword [ecx]
call dword [edx + 0x4c]
mov edi, dword [ebp - 0x28]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x4c]
jmp 0x10005bc8
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebx]
push 0
push edi
mov ecx, ebx
call dword [edx + 0x28]
mov eax, dword [ebx]
lea ecx, [ebp - 0x168]
push 0xf8
push ecx
mov ecx, ebx
call dword [eax + 0x34]
cmp eax, 0xf8
jne 0x10005b96
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
inc word [ebp - 0x162]
mov dword [ebp - 0x110], 0
lea eax, [edx + ecx - 1]
xor edx, edx
div ecx
xor edx, edx
push 0
push edi
mov esi, eax
mov eax, dword [ebp - 0x30]
mov dword [ebp + 8], esi
lea eax, [ecx + eax + 0xb]
div ecx
mov dword [ebp - 0x1c], eax
add eax, esi
imul eax, ecx
mov dword [ebp - 0x118], eax
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x28]
mov eax, dword [ebx]
lea ecx, [ebp - 0x168]
push 0xf8
push ecx
mov ecx, ebx
mov dword [ebp - 4], 2
call dword [eax + 0x38]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebx]
push 0
push eax
mov ecx, ebx
call dword [edx + 0x28]
mov edx, dword [ebx]
lea eax, [ebp - 0x168]
push 0x28
push eax
mov ecx, ebx
call dword [edx + 0x34]
cmp eax, 0x28
jne 0x10005b4e
mov al, byte [ebp - 0x168]
test al, al
jne 0x10005b4e
mov ecx, 0x27
lea edi, [ebp - 0x167]
lea esi, [ebp - 0x168]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x10005b4e
mov ecx, dword [0x1005974c]
mov eax, dword [str.actdlvry]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x164], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x144], 0x42000040
push 0
lea eax, [ecx + esi + 0xb]
div ecx
mov edx, dword [ebp + 0xc]
imul eax, ecx
mov dword [ebp - 0x158], eax
lea eax, [edx + ecx - 1]
xor edx, edx
div ecx
imul eax, ecx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp + 8]
imul eax, ecx
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x1c]
imul eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x160], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x28]
mov edx, dword [ebx]
lea eax, [ebp - 0x168]
push 0x28
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call dword [edx + 0x38]
mov eax, dword [ebp - 0x154]
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x50], 0x31304441
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x48], esi
mov edx, dword [ebx]
push ecx
push eax
mov ecx, ebx
call dword [edx + 0x28]
mov eax, dword [ebx]
lea ecx, [ebp - 0x50]
push 0xc
push ecx
mov ecx, ebx
mov byte [ebp - 4], 4
call dword [eax + 0x38]
mov ecx, dword [ebp - 0x34]
push 0
push 0
mov edx, dword [ecx]
call dword [edx + 0x28]
mov dword [ebp + 0xc], esi
mov eax, dword [ebp - 0x14]
test esi, esi
je 0x1000599c
test eax, eax
jne 0x10005af0
call fcn.1000e8d0
cmp esi, 0x40000
mov edi, 0x40000
ja 0x1000594d
mov edi, esi
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
push edi
push ebx
mov eax, dword [ecx]
call dword [eax + 0x34]
cmp eax, edi
jne 0x10005993
mov ecx, dword [ebp - 0x20]
push edi
push ebx
mov byte [ebp - 4], 5
mov edx, dword [ecx]
call dword [edx + 0x38]
sub esi, edi
mov dword [ebp - 4], 4
mov dword [ebp + 0xc], esi
jmp 0x1000592a
mov dword [ebp - 0x14], 3
jmp 0x1000592a
test eax, eax
jne 0x10005af0
mov edx, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x30]
sub edx, ecx
sub edx, 0xc
je 0x10005af0
mov esi, dword [ebp - 0x24]
mov ecx, edx
mov ebx, ecx
xor eax, eax
mov edi, esi
push edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
mov ebx, dword [ebp - 0x20]
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov eax, dword [ebx]
mov ecx, ebx
mov byte [ebp - 4], 7
call dword [eax + 0x38]
push ebx
call fcn.10006660
xor edi, edi
add esp, 4
cmp eax, edi
je 0x10005b1e
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x64], 8
mov dword [ebp - 0x44], edi
lea eax, [ecx + edx]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x58], eax
mov dword [ebp + 0xc], edi
lea esi, [ecx + 0x58]
add ecx, 0x98
mov dword [ebp - 0x70], esi
mov esi, 4
add edx, esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x60], edx
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp esi, 4
mov dword [ebp + 8], esi
jge 0x10005ac1
test eax, eax
jne 0x10005af0
call fcn.1000e8d0
mov edx, dword [ebx]
push 0
push edi
mov ecx, ebx
call dword [edx + 0x28]
mov esi, dword [ebp + esi*8 - 0x70]
sub esi, edi
test esi, esi
je 0x10005aac
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10005aac
cmp esi, 0x40000
mov edi, 0x40000
ja 0x10005a78
mov edi, esi
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebx]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x34]
cmp eax, edi
jne 0x10005aa3
mov edx, dword [ebp - 0x24]
push edi
lea eax, [ebp - 0x44]
push edx
push eax
call fcn.10006470
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, edi
mov dword [ebp + 0xc], ecx
jmp 0x10005a5c
mov dword [ebp - 0x14], 3
jmp 0x10005a5e
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + esi*8 - 0x6c]
add edi, ecx
inc esi
mov dword [ebp + 0xc], edi
jmp 0x10005a32
test eax, eax
jne 0x10005af0
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebx]
push 0
push eax
mov ecx, ebx
call dword [edx + 0x28]
mov edx, dword [ebx]
lea eax, [ebp - 0x50]
push 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 8
call dword [edx + 0x38]
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ecx]
call dword [edx + 0x4c]
mov edi, dword [ebp - 0x28]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x4c]
jmp 0x10005bc8
mov dword [ebp - 0x14], 0xb
jmp 0x10005af0
mov dword [ebp - 0x14], 7
jmp 0x10005af0
mov ecx, dword [ebp - 0x20]
mov esi, 0xa
mov edx, dword [ecx]
call dword [edx + 0x4c]
mov edi, dword [ebp - 0x28]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x4c]
jmp 0x10005bc8
mov ecx, dword [ebp - 0x20]
mov esi, 5
mov edx, dword [ecx]
call dword [edx + 0x4c]
mov edi, dword [ebp - 0x28]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x4c]
jmp 0x10005bc8
mov ecx, dword [ebp - 0x20]
mov esi, 3
mov edx, dword [ecx]
call dword [edx + 0x4c]
mov edi, dword [ebp - 0x28]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x4c]
jmp 0x10005bc8
mov edi, dword [ebp - 0x28]
mov esi, 2
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x4c]
jmp 0x10005bc8
mov edi, dword [ebp - 0x28]
mov esi, 2
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x10005bd6
mov edx, dword [ecx]
push 1
call dword [edx + 4]
test edi, edi
je 0x10005be3
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0x40]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x10005bf7
mov edi, dword [ebp - 0x40]
mov esi, 1
test edi, edi
je 0x10005c02
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret