Function at 0x5cd326
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffff2d4
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, 0x4c16ec
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x528]
push edx
push 0
push 0
push 0
push ebx
call fcn.005fb1c6
add esp, 0x14
lea ecx, [esi + 0x701]
push ecx
lea eax, [ebp - 0x528]
push eax
call fcn.005f98c6
add esp, 8
test eax, eax
jne 0x5cd48f
push 0
call fcn.00605624
mov byte [ebp - 0x328], 0
lea edx, [ebp - 0x18]
push edx
push 0x4ca820
push 1
push 0
push 0x4ca830
call fcn.0060561e
test eax, eax
jl 0x5cd463
lea ecx, [ebp - 0x1c]
push ecx
push 0x4ca840
mov eax, dword [ebp - 0x18]
push eax
mov edx, dword [eax]
call dword [edx]
test eax, eax
jl 0x5cd45a
push 0x104
lea ecx, [ebp - 0x1ab8]
push ecx
push 0xffffffffffffffff
push ebx
push 1
push 0
call fcn.00605160
push 0
lea eax, [ebp - 0x1ab8]
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
test eax, eax
jl 0x5cd451
push 0
mov eax, dword [0x4d3b7c]
push eax
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x4c]
test eax, eax
jl 0x5cd451
lea eax, [ebp - 0x1d2c]
push 0
push eax
lea edx, [ebp - 0x328]
push 0x104
push edx
mov ecx, dword [ebp - 0x18]
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jge 0x5cd42c
mov byte [ebp - 0x328], 0
push 0x1000
push 0x4d5d88
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x28]
test eax, eax
jl 0x5cd44a
xor eax, eax
mov dword [ebp + 0xc], eax
jmp 0x5cd451
mov byte [0x4d5d88], 0
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [edx]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call fcn.0060562a
cmp byte [ebp - 0x328], 0
jne 0x5cd489
push ebx
lea ecx, [esi + 0x706]
push ecx
call fcn.005aa026
add esp, 8
or eax, 0xffffffff
jmp 0x5cda91
lea ebx, [ebp - 0x328]
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x120]
push eax
push edx
lea ecx, [esi + 0x417]
push 0x104
push ecx
push ebx
push 0
call fcn.0060518a
test eax, eax
jne 0x5cd4ca
push ebx
lea eax, [esi + 0x73f]
push eax
call fcn.005aa026
add esp, 8
or eax, 0xffffffff
jmp 0x5cda91
lea edx, [esi + 0x75a]
push edx
lea ecx, [ebp - 0x120]
push ecx
call fcn.005fb37e
add esp, 8
mov edi, eax
test edi, edi
jne 0x5cd4ed
mov ebx, 1
jmp 0x5cd4ef
xor ebx, ebx
test ebx, ebx
jne 0x5cd511
push edi
push 0x40
push 1
lea eax, [ebp - 0x5a8]
push eax
call fcn.005fb5da
add esp, 0x10
cmp eax, 0x40
je 0x5cd511
mov ebx, 1
lea eax, [ebp - 0x5a8]
test ebx, ebx
jne 0x5cd527
cmp word [eax], 0x5a4d
je 0x5cd527
mov ebx, 2
test ebx, ebx
jne 0x5cd543
push 0
mov eax, dword [eax + 0x3c]
push eax
push edi
call fcn.005fb66a
add esp, 0xc
test eax, eax
je 0x5cd543
mov ebx, 1
test ebx, ebx
jne 0x5cd565
push edi
push 0x18
push 1
lea eax, [ebp - 0x5a8]
push eax
call fcn.005fb5da
add esp, 0x10
cmp eax, 0x18
je 0x5cd565
mov ebx, 1
test ebx, ebx
jne 0x5cd57a
cmp dword [ebp - 0x5a8], 0x4550
je 0x5cd57a
mov ebx, 2
lea eax, [ebp - 0x5a4]
test ebx, ebx
mov dword [ebp - 0x14], eax
jne 0x5cd5a4
mov edx, dword [ebp - 0x14]
cmp word [edx], 0x14c
je 0x5cd596
mov ebx, 2
mov eax, dword [ebp - 0x14]
test byte [eax + 0x12], 2
jne 0x5cd5a4
mov ebx, 2
xor eax, eax
test ebx, ebx
mov dword [ebp - 4], eax
jne 0x5cd601
mov edx, dword [ebp - 0x14]
cmp word [edx + 0x10], 0xe0
jne 0x5cd601
push edi
push 0xe0
push 1
lea ecx, [ebp - 0x1bdc]
push ecx
call fcn.005fb5da
add esp, 0x10
cmp eax, 0xe0
jne 0x5cd601
cmp word [ebp - 0x1b98], 3
jne 0x5cd5e7
mov dword [ebp - 4], 0x10
cmp dword [ebp - 0x1bbc], 0x1000
jae 0x5cd601
cmp dword [0x4d36d8], 2
je 0x5cd601
mov ebx, 3
test edi, edi
je 0x5cd60c
push edi
call fcn.005faee2
pop ecx
cmp ebx, 1
jne 0x5cd62f
lea eax, [ebp - 0x120]
push eax
lea edx, [esi + 0x75d]
push edx
call fcn.005aa026
add esp, 8
or eax, 0xffffffff
jmp 0x5cda91
cmp ebx, 2
jne 0x5cd680
lea edx, [ebp - 0x120]
push edx
lea ecx, [esi + 0x77e]
push ecx
lea eax, [ebp - 0x7ac]
push eax
call fcn.005fcc36
add esp, 0xc
lea edx, [esi + 0x7cd]
lea ecx, [ebp - 0x7ac]
mov eax, dword [0x4d3b7c]
push 0x2124
push edx
push ecx
push eax
call fcn.00605520
cmp eax, 6
je 0x5cd72c
or eax, 0xffffffff
jmp 0x5cda91
cmp ebx, 3
jne 0x5cd6cd
lea edx, [ebp - 0x120]
push edx
lea ecx, [esi + 0x7e1]
push ecx
lea eax, [ebp - 0x7ac]
push eax
call fcn.005fcc36
add esp, 0xc
lea edx, [esi + 0x82e]
lea ecx, [ebp - 0x7ac]
mov eax, dword [0x4d3b7c]
push 0x2124
push edx
push ecx
push eax
call fcn.00605520
cmp eax, 6
je 0x5cd72c
or eax, 0xffffffff
jmp 0x5cda91
mov edx, dword [ebp - 0x14]
test byte [edx + 0x13], 0x20
je 0x5cd72c
cmp dword [ebp + 0xc], 0xffffffff
je 0x5cd725
lea ecx, [ebp - 0x120]
push ecx
lea eax, [esi + 0x841]
push eax
lea edx, [ebp - 0x7ac]
push edx
call fcn.005fcc36
add esp, 0xc
lea ecx, [esi + 0x89f]
lea eax, [ebp - 0x7ac]
mov edx, dword [0x4d3b7c]
push 0x2024
push ecx
push eax
push edx
call fcn.00605520
cmp eax, 6
je 0x5cd725
or eax, 0xffffffff
jmp 0x5cda91
mov dword [ebp - 8], 1
push 1
call fcn.005cb8ae
pop ecx
test eax, eax
je 0x5cd740
or eax, 0xffffffff
jmp 0x5cda91
call fcn.005cb416
test eax, eax
je 0x5cd75e
lea edx, [esi + 0x8b3]
push edx
call fcn.005aa026
pop ecx
or eax, 0xffffffff
jmp 0x5cda91
mov edx, dword [ebp - 8]
xor ecx, ecx
mov dword [0x4d6ea0], edx
mov dword [0x4d6ea4], ecx
cmp dword [0x4d6ea0], 0
je 0x5cd796
call fcn.00565416
test eax, eax
jge 0x5cd796
lea eax, [esi + 0x8d4]
push eax
call fcn.005aa026
pop ecx
or eax, 0xffffffff
jmp 0x5cda91
xor eax, eax
push esi
lea edi, [ebp - 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, 0x4d5b80
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x120]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push 0
push 0x4d5a7c
push 0
push 0
push eax
call fcn.005fb1c6
add esp, 0x14
push 0
push 0x4d5a7c
call fcn.0055f37a
add esp, 8
call fcn.005c1262
cmp byte [0x4d5c84], 0
je 0x5cd823
xor eax, eax
push esi
or ecx, 0xffffffff
mov edi, 0x4d5c84
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x224]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5cd85f
push 0
push 0
lea eax, [ebp - 0x428]
push eax
lea edx, [ebp - 0xb]
push edx
lea ecx, [ebp - 0x120]
push ecx
call fcn.005fb1c6
add esp, 0x14
lea eax, [ebp - 0x428]
lea edx, [ebp - 0xb]
lea ecx, [ebp - 0x224]
push 0
push 0
push eax
push edx
push ecx
call fcn.005fb1a2
add esp, 0x14
mov dword [ebp - 0x1afc], 0x44
xor eax, eax
xor edx, edx
mov dword [ebp - 0x1af8], eax
xor ecx, ecx
mov dword [ebp - 0x1af4], edx
mov dword [ebp - 0x1af0], ecx
mov dword [ebp - 0x1ad0], 0x81
mov word [ebp - 0x1acc], 0xa
mov word [ebp - 0x1aca], 0
xor eax, eax
mov dword [ebp - 0x1ac8], eax
cmp dword [ebp + 0xc], 1
je 0x5cd8b4
cmp dword [0x4d6ea0], 0
je 0x5cd8bb
mov byte [0x4d5d88], 0
cmp dword [0x4d6ea0], 0
je 0x5cd8e8
lea edx, [ebp - 0x120]
lea ecx, [esi + 0x958]
push edx
push 0x4d3868
push ecx
lea eax, [ebp - 0x18b0]
push eax
call fcn.005fcc36
add esp, 0x10
jmp 0x5cd932
cmp byte [0x4d5d88], 0
je 0x5cd915
push 0x4d5d88
lea edx, [ebp - 0x120]
push edx
lea ecx, [esi + 0x96c]
push ecx
lea eax, [ebp - 0x18b0]
push eax
call fcn.005fcc36
add esp, 0x10
jmp 0x5cd932
lea edx, [ebp - 0x120]
push edx
lea ecx, [esi + 0x3c4]
push ecx
lea eax, [ebp - 0x18b0]
push eax
call fcn.005fcc36
add esp, 0xc
lea edx, [ebp - 0x1bec]
lea ecx, [ebp - 0x1afc]
push edx
push ecx
lea eax, [ebp - 0x224]
lea ecx, [ebp - 0x18b0]
push eax
push 0
mov edx, dword [ebp - 4]
or edx, 0x4000022
push edx
push 0
push 0
push 0
push ecx
push 0
call fcn.00604fda
test eax, eax
jne 0x5cd989
lea eax, [ebp - 0x120]
push eax
lea edx, [esi + 0x974]
push edx
call fcn.005aa026
add esp, 8
or eax, 0xffffffff
jmp 0x5cda91
mov edx, dword [ebp - 0x1bec]
mov dword [0x4d5a60], edx
mov ecx, dword [ebp - 0x1be8]
mov dword [0x4d5a64], ecx
mov dword [0x4d5a68], 6
mov dword [0x4d5a6c], 6
mov eax, dword [ebp - 0x1be4]
mov dword [0x4d5a70], eax
mov edx, dword [ebp - 0x1be0]
mov dword [0x4d5a74], edx
mov ecx, dword [ebp - 0x10]
push ecx
lea eax, [esi + 0x3a5]
push eax
lea edx, [esi + 0x98e]
push edx
lea ecx, [ebp - 0x120]
push ecx
call fcn.005fcc36
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
mov edx, dword [0x4d3b7c]
push edx
call fcn.006055c8
mov dword [0x4d5788], 1
xor ecx, ecx
mov dword [0x4d5794], ecx
lea eax, [esi + 0x14]
push eax
push 0
push 0
call fcn.005b0616
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x5cda40
push 0x4d5b80
lea edx, [esi + 0x996]
push edx
push 0
call fcn.0058763a
add esp, 0xc
jmp 0x5cda56
push 0x4d5b80
lea ecx, [esi + 0x9a8]
push ecx
push 0
call fcn.0058763a
add esp, 0xc
cmp byte [0x4d5d88], 0
je 0x5cda75
push 0x4d5d88
lea eax, [esi + 0x9b2]
push eax
push 0
call fcn.0058763a
add esp, 0xc
push 0x4d5d88
push 0x4d5b80
call fcn.005cce0e
add esp, 8
push 3
call fcn.00587982
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret