Function at 0x1005c841
Capabilities:
Parse pe header

Disassembly:
jne 0x1005c7e7
add byte [ecx], dh
rcr byte [ebx + 0x5a], 0x59
push ebp
mov ebp, esp
sub esp, 4
push edi
push esi
push ecx
lea esp, [esp - 4]
xchg dword [esp], edx
sub edx, ecx
or edx, 0xffffffff
push ebx
not ebx
mov ebx, esp
and edx, dword [ebx + 4]
xor dword [esp - 0x3a], ebx
sub eax, 0
mov ebx, dword [ebx]
jno 0x1005c826
sub eax, 0
push 0x7c
call 0x1005c841
add eax, 0x81688b5a
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1005c7d9
add esp, 8
add esp, 8
lea esp, [esp - 4]
push ebx
mov dword [ebp - 4], 0
push ebp
push 0xffffffffffffffff
lea esp, [esp - 0x54]
mov dword [esp + 0x50], 0x73421af8
lea esp, [esp + 0x50]
push eax
lea eax, [edi]
mov eax, esp
xchg dword [eax], esi
mov eax, dword [eax]
xchg eax, esi
sub esi, esi
sub esi, 0x73418293
neg esi
xchg dword [esp], esi
xor al, 0x24
push 0xffffffffffffffff
call fcn.10053370
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
cmp word [ebx], 0x5a4d
jne 0x1005cc15
mov eax, dword [ebx + 0x3c]
cmp eax, dword [esi + 0xc]
jae 0x1005cc15
lea esp, [esp - 4]
mov dword [esp], eax
pop dword [esi + 0x20]
add ebx, eax
mov dword [esi + 0x24], ebx
mov eax, dword [ebx + 0x34]
mov dword [esi + 0x18], eax
cmp dword [ebx], 0x4550
jne 0x1005cc15
cmp word [ebx + 4], 0x14c
jne 0x1005cc15
movzx eax, word [ebx + 0x14]
add dword [esp - 0x18], ebx
push 0xf1b68e3
call 0x1005c8f5
loopne 0x1005c87c
pop esi
aas
or al, 0x55
push 0x5b
clc
sal dword [esi], 1
aaa
movsb byte es:[edi], byte [esi]
or eax, 0x910d3c2
push cs
das
add esp, 8
lea eax, [eax + 0x18]
add eax, dword [esi + 0x20]
add eax, dword [esi + 8]
push edx
mov edx, esi
add edx, 0x10
mov dword [edx], eax
pop edx
mov dword [esp - 0x16], edx
add bl, byte [edx - 0x77]
push esp
and al, 0xea
test word [ebx + 0x16], 2
je 0x1005cc15
test word [ebx + 0x16], 0x100
je 0x1005cc15
cmp word [ebx + 0x18], 0x10b
jne 0x1005cc15
cmp word [ebx + 6], 0
je 0x1005cc15
push edx
call 0x1005c945
jb 0x1005c908
add esp, 8
jmp 0x1005c952
push dword [esi + 8]
call fcn.1005d692
push eax
push dword [esi + 8]
call fcn.1005d5f9
mov dword [esi + 0x28], eax
push ebx
sub ebx, 0xbc4d9296
mov ebx, esp
or dword [ebx - 0x66], edx
pop ebx
push dword [esi + 8]
call fcn.1005d733
push eax
push dword [esi + 8]
call fcn.1005d5f9
mov dword [esi + 0x2c], eax
test edi, eax
xor ecx, 0
push dword [esi + 8]
call fcn.1005d83a
mov eax, dword [eax + 0xc]
and dword [esi + 0x30], eax
or dword [esi + 0x30], eax
push dword [esi + 8]
call fcn.1005d8ef
lea edx, [0xbb5de903]
xor edx, 0xbb5de90f
add edx, eax
mov edx, dword [edx]
sub esp, 4
test esi, edx
test edx, edi
xchg dword [esp], edx
mov edx, dword [esp]
pop dword [esi + 0x34]
push eax
push esi
call 0x1005c9d0
adc eax, 0x5eb81b2a
mov esi, esp
or dword [esi - 0x10], edx
pop esi
push dword [esi + 8]
call fcn.1005d524
add eax, dword [esi + 0x34]
and dword [esi + 0x38], eax
or dword [esi + 0x38], eax
sub eax, dword [esi + 0x30]
mov dword [esi + 0x3c], eax
mov eax, dword [ebx + 0x38]
and dword [esi + 0x4c], eax
or dword [esi + 0x4c], eax
mov edx, dword [ebx + 0x3c]
push edi
lea edi, [esi + 0x48]
mov dword [edi], edx
pop edi
cmp eax, edx
jb 0x1005cc15
push dword [esi + 8]
call fcn.1005d733
push eax
push eax
mov dword [esp - 0x3d], edi
or dword [esp - 0x39], ebx
push dword [esi + 8]
call fcn.1005d5f9
mov edx, eax
or eax, 0xffffffff
and eax, 0xffffffff
sub esp, 0x29
and eax, dword [esp + 0x29]
add esp, 0x2d
push ecx
call 0x1005ca4e
xchg esp, eax
cmp eax, 0x39008332
jle 0x1005ca25
sub al, 0xf5
mov bh, bl
sbb byte [ecx + 0x56], dh
xlatb
add esp, 8
push dword [eax + 0x10]
sub dword [esp - 0x18], edx
and dword [esp - 0x28], edx
push dword [esi + 8]
call fcn.1005d38a
add eax, edx
cmp dword [esi + 0xc], eax
jb 0x1005cc15
je 0x1005ca7c
mov dword [esi + 0x14], 1
ja 0x1005ca84
xor esi, 0
and edx, edx
cmp word [ebx + 0x5c], 2
je 0x1005caa7
cmp word [ebx + 0x5c], 3
je 0x1005caa7
cmp word [ebx + 0x5c], 1
jne 0x1005cc15
mov eax, dword [ebx + 0x28]
cmp eax, 0
je 0x1005cc15
and ecx, 0
xor ecx, eax
push eax
push dword [esi + 8]
call fcn.1005da70
mov dword [esp - 0x6b], ecx
jmp 0x1005cada
cmp eax, 0
je 0x1005cc15
sub ecx, dword [eax + 0xc]
mov dword [esi + 0x44], ecx
mov eax, dword [eax + 0xc]
mov dword [esi + 0x40], eax
xor eax, eax
shr ecx, 0x11
push edx
add edx, ecx
mov edx, esp
xor dword [edx - 0x28], ebx
pop edx
shr ecx, 0xf
or ecx, 0xd0681de4
xor ecx, 0xd0681d90
add ecx, ebx
mov ecx, dword [ecx]
xchg edx, ecx
mov ecx, edx
or ecx, ecx
je 0x1005cb5e
lea edi, [ebx + 0x7c]
add eax, dword [edi]
lea edi, [edi + 8]
dec ecx
jne 0x1005cb1f
call 0x1005cb3f
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
call 0x1005cb48
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x442908c4]
and al, 0x9c
cmp edx, 7
jb 0x1005cb5e
sub eax, dword [ebx + 0xac]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edx
mov eax, dword [esi + 0x30]
add eax, dword [esi + 0x18]
mov dword [esi + 0x1c], eax
mov ecx, dword [ebx + 0x74]
or ecx, ecx
je 0x1005cb99
jae 0x1005cb7c
cmp edx, esi
lea edi, [ebx + 0x78]
sub eax, eax
sub eax, dword [esi + 0x38]
dec eax
not eax
cmp dword [edi], eax
ja 0x1005cc15
lea edi, [edi + 8]
dec ecx
jne 0x1005cb87
call fcn.100533e7
mov dword [ebp - 4], 1
add byte [ebx - 0x240803bb], cl
mov eax, dword [ebp - 4]
neg ebx
or ebx, 0xffffffff
and dword [esp - 0x2b], ecx
jo 0x1005cbb5
cmp edx, ecx
not ebx
push edx
add edx, ebx
mov edx, esp
xor ebx, dword [edx + 4]
call 0x1005cbd4
in al, 0x4d
add dl, byte [ebx]
push eax
dec ecx
dec esi
outsd dx, dword [esi]
jl 0x1005cbd3
pop edx
mov ebp, dword [eax - 0x7f]
call 0x1005cbde
call 0x1005cbde
adc al, 0xbd
mov dl, 3
add byte [ebx + 0x37108c4], 0x83
lock add byte [ebx - 0xf7eafee], cl
int1
jne 0x1005cba4
mov eax, esp
mov dword [eax - 0x32], ebx
pop eax
xor dword [esp - 0x65], esi
add esp, 8
pop edx
pop ecx
pop esi
pop edi
leave
push eax
add eax, 0x881bdb29
mov eax, esp
add dword [eax - 0x10], edx
pop eax
ret 4
call fcn.100533e7
jmp 0x1005cba5