Function at 0x10062d40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3ec
mov eax, dword [0x1008a018]
xor eax, esp
mov dword [esp + 0x3e8], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x2d58]
push 0x204
mov dword [esp + 0x1e8], eax
mov dword [esp + 0x198], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x90], eax
lea eax, [esp + 0x1ee]
push edi
push eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x1e4], edi
mov dword [esp + 0x1e8], edi
mov dword [esp + 0x1ec], edi
mov dword [esp + 0x194], edi
mov dword [esp + 0x198], edi
mov dword [esp + 0x19c], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
mov word [esp + 0x1f4], di
call fcn.1006487a
mov ecx, dword [ebx + 0x2690]
add esp, 0xc
cmp esi, ecx
jb 0x10063174
mov ebx, dword [ebx + 0x267c]
lea edx, [ebx + ecx]
cmp esi, edx
jae 0x10063174
mov eax, dword [esp + 0x14]
cmp eax, ebx
jae 0x10063174
add eax, esi
cmp eax, ecx
jb 0x10063174
cmp eax, edx
jae 0x10063174
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
and ebx, 0xffff0000
neg ebx
sbb ebx, ebx
and ecx, 0xffff0000
neg ebx
neg ecx
sbb ecx, ecx
neg ecx
mov dword [esp + 0x1dc], eax
mov dword [esp + 0x18c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x84], eax
lea eax, [esp + 0x198]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x1d8], esi
mov dword [esp + 0x188], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x1e0], esi
call fcn.10063e20
cmp word [eax], 0x5a4d
jne 0x10063174
mov ecx, dword [eax + 0x3c]
add ecx, esi
lea eax, [esp + 0x90]
mov dword [esp + 0x190], ecx
call fcn.10063e70
test al, al
je 0x10063174
lea eax, [esp + 0x90]
call fcn.10063e40
cmp dword [eax], 0x4550
jne 0x10063174
mov eax, dword [eax + 0x88]
cmp eax, edi
je 0x10063174
add esi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x68], esi
call fcn.10063e00
test al, al
je 0x10063174
lea eax, [esp + 0x50]
call fcn.10063ea0
movzx esi, word [eax + 0xe]
movzx edx, word [eax + 0xc]
add esi, edx
cmp esi, 0x100
mov dword [esp + 0x48], esi
jge 0x10063174
cmp esi, edi
mov dword [esp + 0x14], edi
jle 0x10063174
mov dword [esp + 0x10], 0x10
lea esp, [esp]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x10]
add ecx, eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x3c], ecx
call fcn.10063c20
test al, al
je 0x10063174
lea eax, [esp + 0x2c]
call fcn.10063ec0
cmp ebx, edi
jne 0x100630d5
movzx edx, word [eax]
cmp edx, dword [esp + 0x24]
jne 0x1006315c
lea eax, [esp + 0x2c]
call fcn.10063ec0
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x1c]
and eax, 0x7fffffff
add eax, esi
mov dword [esp + 0x68], eax
lea eax, [esp + 0x50]
call fcn.10063e00
test al, al
je 0x10063174
lea eax, [esp + 0x50]
call fcn.10063ea0
movzx ebx, word [eax + 0xe]
movzx ecx, word [eax + 0xc]
add ebx, ecx
cmp ebx, 0x100
mov dword [esp + 0x28], ebx
jge 0x10063174
cmp ebx, edi
mov dword [esp + 0x14], edi
jle 0x10063174
mov dword [esp + 0x10], 0x10
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x2c]
call fcn.10063c20
test al, al
je 0x10063174
cmp dword [esp + 0x4c], edi
jne 0x1006318d
lea eax, [esp + 0x2c]
call fcn.10063ec0
movzx ecx, word [eax]
cmp ecx, dword [esp + 0x20]
jne 0x1006322f
lea eax, [esp + 0x2c]
call fcn.10063ec0
mov edi, dword [eax + 4]
and edi, 0x7fffffff
add edi, esi
lea eax, [esp + 0x50]
mov dword [esp + 0x68], edi
call fcn.10063e00
test al, al
je 0x10063174
add edi, 0x10
lea eax, [esp + 0x2c]
mov dword [esp + 0x3c], edi
call fcn.10063c20
test al, al
je 0x10063174
lea eax, [esp + 0x2c]
call fcn.10063ec0
mov edi, dword [eax + 4]
and edi, 0x7fffffff
add edi, esi
lea eax, [esp + 0x70]
mov dword [esp + 0x88], edi
call fcn.10063e00
test al, al
je 0x10063174
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3e8]
xor ecx, esp
call fcn.10063f56
mov esp, ebp
pop ebp
ret 0xc
movzx eax, word [eax]
mov ecx, dword [esp + 0x1c]
and eax, 0x7fffffff
lea edx, [esp + 0x18]
test edx, edx
lea ebx, [eax + ecx]
je 0x10063174
mov edi, dword [esp + 0x44]
push 2
mov ecx, ebx
mov eax, edi
call fcn.10020910
cmp eax, 0xffffffff
je 0x10063174
mov eax, dword [edi + 0x2d58]
mov cx, word [eax + ebx]
add eax, ebx
mov word [esp + 0x18], cx
mov eax, dword [esp + 0x18]
cmp eax, 0xff
jl 0x10063125
mov eax, 0xff
push edi
lea esi, [eax + eax]
add ebx, 2
lea edi, [esp + 0x1ec]
call fcn.10056c50
test eax, eax
je 0x10063174
mov eax, dword [esp + 0x24]
mov edx, edi
push edx
push eax
call dword [0x10056058]
xor edi, edi
test eax, eax
je 0x10062fad
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
add dword [esp + 0x10], 8
add eax, 1
cmp eax, esi
mov dword [esp + 0x14], eax
jl 0x10062f70
mov ecx, dword [esp + 0x3f4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10063f56
mov esp, ebp
pop ebp
ret 0xc
push 0x206
lea edx, [esp + 0x1ec]
push edi
push edx
call fcn.1006487a
add esp, 0xc
lea eax, [esp + 0x2c]
call fcn.10063ec0
movzx eax, word [eax]
and eax, 0x7fffffff
lea ecx, [esp + 0x18]
test ecx, ecx
lea ebx, [eax + esi]
je 0x10063174
mov edi, dword [esp + 0x44]
push 2
mov ecx, ebx
mov eax, edi
call fcn.10020910
cmp eax, 0xffffffff
je 0x10063174
mov edx, dword [edi + 0x2d58]
mov ax, word [edx + ebx]
add edx, ebx
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x18]
cmp eax, 0xff
jl 0x100631f4
mov eax, 0xff
push edi
lea esi, [eax + eax]
add ebx, 2
lea edi, [esp + 0x1ec]
call fcn.10056c50
test eax, eax
je 0x10063174
mov edx, dword [esp + 0x20]
mov ecx, edi
push ecx
push edx
call dword [0x10056058]
test eax, eax
mov esi, dword [esp + 0x1c]
je 0x1006304f
mov ebx, dword [esp + 0x28]
xor edi, edi
mov eax, dword [esp + 0x14]
add dword [esp + 0x10], 8
add eax, 1
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x10063010
jmp 0x10063174