Function at 0x446970
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x824
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x838]
cmp word [edi], 0x5a4d
jne 0x446bbf
mov ecx, dword [edi + 0x3c]
cmp dword [ecx + edi], 0x4550
jne 0x446bbf
xor esi, esi
lea eax, [ecx + edi + 0x18]
mov si, word [ecx + edi + 6]
mov dword [esp + 0x14], eax
cmp esi, 0xc8
mov dword [esp + 0x24], esi
jg 0x446bbf
mov ecx, dword [eax + 4]
mov ebp, 0x80000000
cmp ecx, ebp
jae 0x446bbf
cmp dword [eax + 0x14], ebp
jae 0x446bbf
cmp dword [eax + 0x1c], ebp
jae 0x446bbf
mov ecx, dword [eax + 0x64]
lea ebx, [eax + 0xe0]
test ecx, ecx
je 0x446bbf
mov eax, dword [eax + 0x60]
test eax, eax
je 0x446bbf
cmp eax, ebp
jae 0x446bbf
push esi
push ebx
push eax
call fcn.00446510
add esp, 0xc
cmp eax, 0xffffffff
je 0x446bbf
mov ecx, dword [eax + edi + 0xc]
test ecx, ecx
je 0x446bbf
cmp ecx, ebp
jae 0x446bbf
mov edx, dword [eax + edi + 0x14]
test edx, edx
je 0x446bbf
mov ecx, dword [eax + edi + 0x18]
test ecx, ecx
mov dword [esp + 0x20], ecx
je 0x446bbf
cmp edx, ecx
jb 0x446bbf
mov ecx, dword [eax + edi + 0x1c]
test ecx, ecx
je 0x446bbf
mov ebp, dword [eax + edi + 0x24]
lea edx, [eax + edi + 0x24]
test ebp, ebp
mov dword [esp + 0x10], edx
je 0x446bbf
lea ebp, [eax + edi + 0x20]
mov eax, dword [eax + edi + 0x20]
test eax, eax
je 0x446bbf
push esi
push ebx
push ecx
call fcn.00446510
add eax, edi
push esi
mov dword [esp + 0x40], eax
mov eax, dword [ebp]
push ebx
push eax
call fcn.00446510
mov ecx, dword [esp + 0x28]
push esi
mov ebp, eax
push ebx
mov edx, dword [ecx]
add ebp, edi
push edx
call fcn.00446510
mov ecx, dword [esp + 0x38]
add esp, 0x24
add eax, edi
mov dword [esp + 0x10], 0
mov edx, dword [ecx + 0x60]
mov ecx, dword [ecx + 0x64]
add ecx, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x20]
test ecx, ecx
jle 0x446bbf
mov dword [esp + 0x18], eax
jmp 0x446adf
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp]
add ecx, 0xe0
push esi
push ecx
push eax
xor ebx, ebx
call fcn.00446510
mov ecx, dword [esp + 0x3c]
mov esi, eax
mov eax, dword [esp + 0x24]
xor edx, edx
add esi, edi
add esp, 0xc
mov dx, word [eax]
xor al, al
mov ecx, dword [ecx + edx*4]
mov byte [esp + 0x34], al
mov dl, byte [esi]
mov dword [esp + 0x1c], ecx
cmp dl, 0x3f
jne 0x446b45
push 0
lea edx, [esp + 0x38]
push 0x800
push edx
push esi
call dword [sym.imp.dbghelp.dll_UnDecorateSymbolName]
test eax, eax
jne 0x446b3d
xor al, al
mov byte [esp + 0x34], al
jmp 0x446b41
mov al, byte [esp + 0x34]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x28]
jb 0x446b76
cmp ecx, dword [esp + 0x2c]
jae 0x446b76
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push eax
lea eax, [edx + 0xe0]
push eax
push ecx
call fcn.00446510
mov ecx, dword [esp + 0x28]
mov ebx, eax
mov al, byte [esp + 0x40]
add esp, 0xc
add ebx, edi
neg al
sbb eax, eax
lea edx, [esp + 0x34]
and eax, edx
push ebx
push eax
mov eax, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x84c]
push eax
push ecx
push esi
call dword [esp + 0x85c]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
add esp, 0x1c
add ebp, 4
inc esi
add ecx, 2
cmp esi, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ecx
jl 0x446adb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x824
ret