Function at 0x4e7ce0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push edi
lea edi, [ebp - 0xbc]
mov ecx, 0x2f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
xor eax, eax
mov word [ebp - 0x5c], ax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
push 0x30
push 0
lea ecx, [ebp - 0xb4]
push ecx
call fcn.00458a58
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ebp - 0xb4], edx
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004e8580
add esp, 8
test eax, eax
jne 0x4e7d6b
jmp 0x4e84ca
mov dword [ebp - 0x88], 0x4000
push 0x4000
call fcn.004583af
add esp, 4
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jne 0x4e7daf
push 0x7a0134
push 0
push 0x223
push 0x7a0144
call fcn.0045894a
add esp, 0x10
jmp 0x4e84ca
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
lea eax, [ebp - 0xb4]
push eax
push 0x40
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
call fcn.004e85d0
add esp, 0x14
test eax, eax
jne 0x4e7dd7
jmp 0x4e84ca
mov edx, dword [ebp - 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x4e7ded
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x3c], 0
jg 0x4e7e0b
push 0x7a0164
push 1
push 0x229
push 0x7a017c
call fcn.00457f9a
add esp, 0x10
jmp 0x4e84ca
lea edx, [ebp - 0xb4]
push edx
push 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x3c]
cdq
push edx
push eax
call fcn.004e85d0
add esp, 0x14
test eax, eax
jne 0x4e7e32
jmp 0x4e84ca
cmp dword [ebp - 0x1c], 0x4550
je 0x4e7e59
push str._rN_f
push 1
push 0x22e
push 0x7a01b4
call fcn.00457f9a
add esp, 0x10
jmp 0x4e84ca
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
add ecx, 4
xor edx, edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xa0], 0
mov dword [ebp - 0x64], 0x80
mov ecx, dword [ebp - 0x64]
add ecx, 0x90
cmp dword [ebp - 0x60], ecx
jb 0x4e7ed7
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x68], edx
lea eax, [ebp - 0xb4]
push eax
push 0x90
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x64]
xor eax, eax
push eax
push edx
call fcn.004e85d0
add esp, 0x14
test eax, eax
jne 0x4e7ec0
jmp 0x4e84ca
mov ecx, dword [ebp - 0x68]
cmp dword [ecx], 0x82c8851f
jne 0x4e7ed7
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x64]
mov dword [edx + 0xa0], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0xb4]
push edx
push 0x14
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004e85d0
add esp, 0x14
test eax, eax
jne 0x4e7f03
jmp 0x4e84ca
mov eax, dword [ebp - 0x28]
add eax, 0x14
mov ecx, dword [ebp - 0x24]
adc ecx, 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0xb4]
push edx
push 2
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004e85d0
add esp, 0x14
test eax, eax
jne 0x4e7f3b
jmp 0x4e84ca
movzx eax, word [ebp - 0x30]
cmp eax, 0x10b
jne 0x4e7f80
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x10]
cmp edx, 0x78
jae 0x4e7f70
push 0x7a01d4
push 1
push 0x248
push 0x7a01e8
call fcn.00457f9a
add esp, 0x10
jmp 0x4e84ca
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], 0xe0
jmp 0x4e7fe6
movzx eax, word [ebp - 0x30]
cmp eax, 0x20b
jne 0x4e7fc8
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x10]
cmp edx, 0x88
jae 0x4e7fb8
push 0x7a0208
push 1
push 0x24e
push 0x7a021c
call fcn.00457f9a
add esp, 0x10
jmp 0x4e84ca
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0xf0
jmp 0x4e7fe6
push str._rN_e
push 1
push 0x252
push 0x7a0254
call fcn.00457f9a
add esp, 0x10
jmp 0x4e84ca
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x10]
cmp ecx, dword [ebp - 0x3c]
jae 0x4e7ffc
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 0x10]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx + 2]
mov word [ebp - 0x40], dx
lea eax, [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004e85d0
add esp, 0x14
test eax, eax
jne 0x4e802f
jmp 0x4e84ca
cmp dword [ebp - 0x38], 0
je 0x4e80da
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, 0x40
sub eax, dword [ebp - 0x10]
cdq
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
adc ecx, edx
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
add eax, 0x80
sub eax, dword [ebp - 0x10]
cdq
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
adc ecx, edx
mov edx, dword [ebp + 0x10]
mov dword [edx + 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x80]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x84]
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 0x10]
mov byte [eax + 0x9c], 0
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 0x44]
cmp edx, 1
jne 0x4e80bc
mov eax, dword [ebp + 0x10]
mov byte [eax + 0x9d], 1
jmp 0x4e80c6
mov ecx, dword [ebp + 0x10]
mov byte [ecx + 0x9d], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x70]
mov ecx, dword [edx + 0x74]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
jmp 0x4e817c
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 0x40
sub eax, dword [ebp - 0x14]
cdq
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
adc ecx, edx
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
add eax, 0x90
sub eax, dword [ebp - 0x14]
cdq
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
adc ecx, edx
mov edx, dword [ebp + 0x10]
mov dword [edx + 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x90]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x94]
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x40]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 0x10]
mov byte [eax + 0x9c], 1
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 0x44]
cmp edx, 1
jne 0x4e815d
mov eax, dword [ebp + 0x10]
mov byte [eax + 0x9d], 1
jmp 0x4e8167
mov ecx, dword [ebp + 0x10]
mov byte [ecx + 0x9d], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x80]
mov ecx, dword [edx + 0x84]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
add eax, 4
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x3c]
xor eax, eax
add edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
adc ecx, eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x18], 0
mov eax, dword [ebp + 0x10]
mov byte [eax + 0x9e], 0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0xb0], ecx
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0xa0], 0
je 0x4e81f2
mov ecx, dword [ebp + 0x10]
movzx edx, byte [ecx + 0x9c]
test edx, edx
jne 0x4e81f2
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 0x9d]
test ecx, ecx
je 0x4e81f2
mov dword [ebp - 0xbc], 1
jmp 0x4e81fc
mov dword [ebp - 0xbc], 0
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x6c], edx
cmp dword [ebp + 0x14], 0
je 0x4e8211
cmp dword [ebp - 0x4c], 0
jne 0x4e821b
cmp dword [ebp - 0x6c], 0
je 0x4e84c3
mov eax, 0x333
mov word [ebp - 0x30], ax
movzx ecx, word [ebp - 0x40]
movzx edx, word [ebp - 0x30]
cmp ecx, edx
jle 0x4e8238
mov ax, word [ebp - 0x30]
mov word [ebp - 0x40], ax
movzx ecx, word [ebp - 0x40]
cmp ecx, 0xffff
jne 0x4e8250
mov dx, word [ebp - 0x40]
sub dx, 1
mov word [ebp - 0x40], dx
movzx eax, word [ebp - 0x40]
imul eax, eax, 0x28
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.004583af
add esp, 4
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4e828d
push 0x7a0274
push 0
push 0x289
push 0x7a0284
call fcn.0045894a
add esp, 0x10
jmp 0x4e84ca
lea edx, [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.004e85d0
add esp, 0x14
test eax, eax
jne 0x4e82b5
jmp 0x4e84ca
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xb0]
add edx, dword [ebp - 0x70]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xb0], edx
cmp dword [ebp - 0x6c], 0
je 0x4e8324
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
xor edx, edx
mov word [ebp - 0x5c], dx
jmp 0x4e82ea
mov ax, word [ebp - 0x5c]
add ax, 1
mov word [ebp - 0x5c], ax
movzx ecx, word [ebp - 0x5c]
movzx edx, word [ebp - 0x40]
cmp ecx, edx
jge 0x4e8324
push 5
push str.INIT
mov eax, dword [ebp - 0x58]
push eax
call fcn.00456ed8
add esp, 0xc
test eax, eax
jne 0x4e8319
mov ecx, dword [ebp + 0x10]
mov byte [ecx + 0x9e], 1
jmp 0x4e8324
mov edx, dword [ebp - 0x58]
add edx, 0x28
mov dword [ebp - 0x58], edx
jmp 0x4e82de
movzx eax, word [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004e8bb0
add esp, 0x10
mov dword [ebp - 0x74], eax
mov ecx, 1
test ecx, ecx
je 0x4e84c3
cmp dword [ebp - 0x74], 0
jne 0x4e8358
jmp 0x4e84c3
lea edx, [ebp - 0xb4]
push edx
push 0x8000
mov eax, dword [ebp + 0xc]
push eax
push 0xa
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.004e8a80
add esp, 0x14
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jne 0x4e8384
jmp 0x4e84c3
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 4]
shr eax, 0x1f
and eax, 1
jne 0x4e8397
jmp 0x4e84c3
lea ecx, [ebp - 0xb4]
push ecx
push 0x8000
mov edx, dword [ebp + 0xc]
push edx
push 0x360
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 4]
and ecx, 0x7fffffff
add ecx, dword [ebp - 0x74]
push ecx
call fcn.004e8a80
add esp, 0x14
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jne 0x4e83d2
jmp 0x4e84c3
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 4]
shr eax, 0x1f
and eax, 1
jne 0x4e83e5
jmp 0x4e84c3
lea ecx, [ebp - 0xb4]
push ecx
push 0x8000
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 4]
and ecx, 0x7fffffff
add ecx, dword [ebp - 0x74]
push ecx
call fcn.004e8a80
add esp, 0x14
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jne 0x4e841d
jmp 0x4e84c3
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 4]
shr eax, 0x1f
and eax, 1
je 0x4e8430
jmp 0x4e84c3
lea ecx, [ebp - 0xb4]
push ecx
push 0x10
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x74]
add ecx, dword [eax + 4]
xor edx, edx
push edx
push ecx
call fcn.004e85d0
add esp, 0x14
test eax, eax
jne 0x4e8458
jmp 0x4e84ca
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
cmp dword [ecx + 4], 0x80
je 0x4e846c
jmp 0x4e84c3
movzx edx, word [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x54]
push eax
push 0x80
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx]
push edx
call fcn.004e8bb0
add esp, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0xb4]
push eax
push 0x80
mov ecx, dword [ebp + 0x10]
add ecx, 0x1c
push ecx
mov edx, dword [ebp - 0x78]
xor eax, eax
push eax
push edx
call fcn.004e85d0
add esp, 0x14
test eax, eax
jne 0x4e84b3
jmp 0x4e84ca
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x74]
mov dword [ecx + 0x18], edx
jmp 0x4e84c3
mov dword [ebp - 4], 1
cmp dword [ebp - 0x8c], 0
je 0x4e84e2
mov eax, dword [ebp - 0x8c]
push eax
call fcn.00458652
add esp, 4
cmp dword [ebp - 0x54], 0
je 0x4e84f4
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.00458652
add esp, 4
mov eax, dword [ebp - 4]
push edx
mov ecx, ebp
push eax
lea edx, [0x4e851c]
call fcn.00456776
pop eax
pop edx
pop edi
add esp, 0xbc
cmp ebp, esp
call fcn.0045761c
mov esp, ebp
pop ebp
ret