Function at 0x1004cc1f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
pushal
mov ebp, esp
add esp, 0xffffffb0
test ecx, ecx
je 0x1004d24a
test edx, 1
je 0x1004cc3e
lea ecx, [ecx + 8]
mov dword [ebp + 0x18], ecx
movzx eax, word [ecx]
cmp eax, 0x5a4d
jne 0x1004d251
mov eax, dword [ecx + 0x3c]
lea ebx, [ecx + eax]
mov eax, dword [ebx]
cmp eax, 0x4550
jne 0x1004d251
movzx eax, word [ebx + 0x18]
cmp eax, 0x10b
jne 0x1004d251
mov edx, dword [ebx + 0x38]
test edx, 1
jne 0x1004d251
movzx eax, word [ebx + 0x14]
lea esi, [ebx + eax + 0x18]
movzx ecx, word [ebx + 6]
xor edi, edi
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x1004cc94
mov eax, edx
add eax, dword [esi + 0xc]
cmp eax, edi
jbe 0x1004cc9d
mov edi, eax
dec ecx
je 0x1004cca5
lea esi, [esi + 0x28]
jmp 0x1004cc8b
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0x30]
dec ecx
mov eax, dword [ebx + 0x50]
add eax, ecx
mov edx, ecx
not edx
and eax, edx
lea edx, [edi + ecx]
not ecx
and edx, ecx
cmp eax, edx
jne 0x1004d251
mov esi, eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc0]
mov edi, dword [ebx + 0x34]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], eax
lea edi, [ebp - 8]
lea esi, [ebp - 0xc]
push 4
push 0x3000
push esi
push 0
push edi
push 0xffffffffffffffff
call eax
test eax, eax
jns 0x1004cd1a
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x10]
push 4
push 0x3000
push esi
push 0
push edi
push 0xffffffffffffffff
call eax
test eax, eax
js 0x1004d258
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push 4
push 0x1000
push esi
push 0
push edi
push 0xffffffffffffffff
call eax
test eax, eax
js 0x1004d258
mov edi, dword [ebp - 4]
mov esi, dword [ebp + 0x18]
mov ecx, dword [ebx + 0x54]
cld
mov eax, ecx
and eax, 3
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
lea ebx, [eax + ecx]
mov dword [ebx + 0x34], eax
mov ecx, dword [ebx + 0x38]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
movzx ecx, word [ebx + 0x14]
lea edi, [ebx + ecx + 0x18]
movzx ebx, word [ebx + 6]
mov ecx, dword [edi + 0x10]
test ecx, ecx
jne 0x1004cd8b
mov ecx, dword [ebp - 0x18]
jecxz 0x1004cdfc
mov eax, dword [edi + 0xc]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 8]
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 0x10]
push 4
push 0x1000
push ecx
push 0
push edx
push 0xffffffffffffffff
call eax
test eax, eax
js 0x1004d258
mov eax, dword [edi + 0xc]
add eax, dword [ebp - 4]
mov dword [edi + 8], eax
mov ecx, dword [edi + 0x10]
test ecx, ecx
jne 0x1004cde2
mov esi, edi
mov edi, eax
mov ecx, dword [ebp - 0x18]
mov edx, ecx
and edx, 3
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
rep stosb byte es:[edi], al
mov edi, esi
jmp 0x1004cdfc
mov edx, edi
mov esi, dword [edi + 0x14]
add esi, dword [ebp + 0x18]
mov edi, eax
mov eax, ecx
and eax, 3
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec ebx
je 0x1004ce07
lea edi, [edi + 0x28]
jmp 0x1004cd7f
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x34]
sub eax, dword [ebp - 0x14]
je 0x1004ce7a
mov ecx, dword [ebx + 0x74]
cmp ecx, 5
jb 0x1004d261
lea edi, [ebx + 0xa0]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1004d261
mov edi, dword [edi]
add edi, dword [ebp - 4]
mov dword [ebp - 8], ebx
mov esi, dword [edi]
test esi, esi
je 0x1004ce77
add esi, dword [ebp - 4]
mov ecx, dword [edi + 4]
sub ecx, 8
shr ecx, 1
je 0x1004ce6f
lea ebx, [edi + 8]
mov edx, dword [ebx]
shr edx, 0xc
and edx, 0xf
je 0x1004ce67
cmp edx, 3
jne 0x1004ce67
mov edx, dword [ebx]
and edx, 0xfff
add dword [esi + edx], eax
dec ecx
je 0x1004ce6f
lea ebx, [ebx + 2]
jmp 0x1004ce4d
mov ecx, dword [edi + 4]
lea edi, [edi + ecx]
jmp 0x1004ce37
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx + 0x74]
cmp ecx, 1
jb 0x1004cfd7
lea edi, [ebx + 0x80]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1004cfd7
mov edi, dword [edi]
add edi, dword [ebp - 4]
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 0x1c]
mov ebx, dword [eax]
add esp, 0xfffffe00
mov edx, dword [edi + 0xc]
test edx, edx
je 0x1004cfce
add edx, dword [ebp - 4]
lea ecx, [esp + 8]
mov eax, dword [ebx + 0x88]
push edx
push ecx
call eax
lea ecx, [esp + 8]
movzx eax, word [ecx]
test eax, eax
jne 0x1004cedc
add esp, 0x200
jmp 0x1004d268
shl eax, 1
cmp eax, 0x220
jbe 0x1004cef0
add esp, 0x200
jmp 0x1004d26f
mov edx, esp
mov word [edx], ax
lea eax, [eax + 2]
mov word [edx + 2], ax
lea eax, [esp + 0x10]
mov dword [edx + 4], eax
mov eax, dword [ebx + 0xa8]
push 0
push ecx
push edx
call eax
test eax, eax
jns 0x1004cf1e
add esp, 0x200
jmp 0x1004d258
mov ecx, esp
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x120]
push edx
push ecx
push 0
push 0
call eax
test eax, eax
jns 0x1004cf40
add esp, 0x200
jmp 0x1004d258
mov esi, dword [edi]
test esi, esi
jne 0x1004cf49
mov esi, dword [edi + 0x10]
add esi, dword [ebp - 4]
mov dword [ebp - 0x14], edi
mov edi, dword [edi + 0x10]
add edi, dword [ebp - 4]
mov ecx, dword [esi]
jecxz 0x1004cfc3
test ecx, 0x80000000
je 0x1004cf6b
and ecx, 0xffff
xor edx, edx
jmp 0x1004cf85
add ecx, dword [ebp - 4]
lea ecx, [ecx + 2]
lea edx, [esp + 8]
mov eax, dword [ebx + 0x88]
push ecx
push edx
call eax
xor ecx, ecx
lea edx, [esp + 8]
lea eax, [ebp - 0x10]
push eax
push ecx
push edx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 0xb8]
call eax
test eax, eax
jns 0x1004cfb6
mov esi, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x128]
push ecx
call eax
mov eax, esi
add esp, 0x200
jmp 0x1004d258
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
lea esi, [esi + 4]
lea edi, [edi + 4]
jmp 0x1004cf55
mov edi, dword [ebp - 0x14]
lea edi, [edi + 0x14]
jmp 0x1004ceaa
add esp, 0x200
mov ebx, dword [ebp - 8]
mov dword [ebp - 8], ebx
movzx ecx, word [ebx + 0x14]
lea edi, [ebx + ecx + 0x18]
mov esi, esp
mov ecx, dword [ebx + 0x20]
mov dword [esi + 0x18], ecx
mov ecx, dword [ebx + 0x24]
mov dword [esi + 0x14], ecx
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
mov ecx, dword [edx + 0xc8]
mov dword [esi + 0x28], ecx
mov ecx, dword [edx + 0xd8]
mov dword [esi + 0x2c], ecx
lea eax, [eax + 0x28]
mov ecx, dword [eax + 8]
xor eax, eax
cmp ecx, dword [ebx + 0x38]
jne 0x1004d015
inc eax
mov dword [esi + 0x1c], eax
dec ecx
mov dword [esi + 0x24], ecx
not ecx
mov dword [esi + 0x20], ecx
mov edx, dword [edi + 8]
mov dword [esi], edx
and edx, ecx
mov dword [esi + 4], edx
mov edx, dword [edi + 0x24]
mov dword [esi + 0xc], edx
mov ecx, dword [edi + 0x10]
test ecx, ecx
jne 0x1004d050
test edx, 0x40
je 0x1004d045
mov ecx, dword [esi + 0x18]
jmp 0x1004d050
test edx, 0x80
je 0x1004d050
mov ecx, dword [esi + 0x14]
mov dword [esi + 8], ecx
movzx ebx, word [ebx + 6]
dec ebx
je 0x1004d0c0
lea edi, [edi + 0x28]
mov edx, dword [edi + 0x24]
mov ecx, dword [edi + 0x10]
test ecx, ecx
jne 0x1004d07f
test edx, 0x40
je 0x1004d074
mov ecx, dword [esi + 0x18]
jmp 0x1004d07f
test edx, 0x80
je 0x1004d07f
mov ecx, dword [esi + 0x14]
mov edx, dword [edi + 8]
and edx, dword [esi + 0x20]
cmp edx, dword [esi + 4]
je 0x1004d093
mov eax, dword [esi]
add eax, dword [esi + 8]
cmp eax, edx
jbe 0x1004d0c0
mov edx, dword [edi + 0x24]
mov eax, dword [esi + 0xc]
test edx, 0x2000000
je 0x1004d0a8
test eax, 0x2000000
jne 0x1004d0b0
or edx, eax
xor edx, 0xfdffffff
or dword [esi + 0xc], edx
add ecx, dword [edi + 8]
sub ecx, dword [esi]
mov dword [esi + 8], ecx
jmp 0x1004d184
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1004d169
mov edx, dword [esi]
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], ecx
mov eax, dword [esi + 0xc]
test eax, 0x2000000
je 0x1004d10f
cmp edx, dword [esi + 4]
jne 0x1004d169
test ebx, ebx
je 0x1004d0f9
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x1004d0f9
test dword [esi + 0x24], ecx
jne 0x1004d169
lea edx, [esi + 0x30]
lea ecx, [esi + 0x34]
mov eax, dword [esi + 0x28]
push 0x4000
push ecx
push edx
push 0xffffffffffffffff
call eax
jmp 0x1004d169
mov ecx, dword [esi + 0xc]
shr ecx, 0x1e
jae 0x1004d11a
or ecx, 4
xor edx, edx
inc edx
shl edx, cl
test edx, 0xc
je 0x1004d12c
xor edx, 0xc
jmp 0x1004d13a
test edx, 0xc0
je 0x1004d13a
xor edx, 0xc0
mov ecx, dword [esi + 0xc]
test ecx, 0x4000000
je 0x1004d14b
or edx, 0x200
lea eax, [esi + 0x38]
lea ecx, [esi + 0x34]
push eax
push edx
push ecx
lea edx, [esi + 0x30]
mov eax, dword [esi + 0x2c]
xor ecx, ecx
dec ecx
push edx
push ecx
call eax
test eax, eax
js 0x1004d258
mov edx, dword [edi + 8]
mov dword [esi], edx
and edx, dword [esi + 0x20]
mov dword [esi + 4], edx
mov edx, dword [edi + 0x24]
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0x10]
mov dword [esi + 8], ecx
test ebx, ebx
je 0x1004d193
dec ebx
je 0x1004d0c0
lea edi, [edi + 0x28]
jmp 0x1004d05d
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx + 0x74]
cmp ecx, 9
jb 0x1004d1d4
lea edi, [ebx + 0xc0]
mov ecx, dword [edi + 4]
jecxz 0x1004d1d4
mov edi, dword [edi]
test edi, edi
je 0x1004d1d4
add edi, dword [ebp - 4]
mov esi, dword [edi + 0xc]
test esi, esi
je 0x1004d1d4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 4]
mov eax, dword [esi]
test eax, eax
je 0x1004d1d1
push 0
push 1
push ebx
call eax
lea esi, [esi + 4]
jmp 0x1004d1bf
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x1004d1fe
movzx ecx, word [ebx + 0x16]
test ecx, 0x2000
je 0x1004d1f9
mov edx, dword [ebp - 4]
add eax, edx
push 0
push 1
push edx
call eax
test eax, eax
je 0x1004d276
jmp 0x1004d1fe
add eax, dword [ebp - 4]
call eax
mov eax, dword [ebp - 4]
mov dword [ebp + 0x1c], eax
mov esp, ebp
popal
ret
xor ecx, ecx
mov dword [ebp - 8], ecx
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc8]
push 0x8000
push ecx
push edx
push 0xffffffffffffffff
call eax
mov eax, dword [ebp + 0x1c]
mov ebx, dword [eax]
test edi, edi
jns 0x1004d23d
mov eax, dword [ebx + 0x110]
push edi
call eax
mov edi, eax
mov eax, dword [ebx + 0x118]
push edi
call eax
xor eax, eax
jmp 0x1004d201
mov edi, 0x57
jmp 0x1004d229
mov edi, 0xc1
jmp 0x1004d229
mov edi, eax
mov ecx, dword [ebp - 4]
jecxz 0x1004d229
jmp 0x1004d208
mov edi, 0xc1
jmp 0x1004d208
mov edi, 0x7b
jmp 0x1004d208
mov edi, 0xce
jmp 0x1004d208
mov edi, 0x45a
jmp 0x1004d208