Function at 0x46c004
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [0x4a01dc], 0
jne 0x46c018
call fcn.0046bdf0
cmp dword [ebp + 8], 0
jne 0x46c025
xor eax, eax
jmp 0x46c7d0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
push 0x40
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x46c04b
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5a4d
je 0x46c052
xor eax, eax
jmp 0x46c7d0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x18], edx
push 0xf8
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x46c07d
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0x4550
je 0x46c084
xor eax, eax
jmp 0x46c7d0
mov edx, dword [ebp - 0x18]
xor eax, eax
mov ax, word [edx + 0x14]
cmp eax, 0xe0
jne 0x46c0a5
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dx, word [ecx + 0x18]
cmp edx, 0x10b
je 0x46c0af
mov eax, 4
jmp 0x46c7d0
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cx, word [eax + 6]
cmp ecx, 1
jge 0x46c0c4
xor eax, eax
jmp 0x46c7d0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x80]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46c0f3
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], ecx
jmp 0x46c0fd
mov eax, 8
jmp 0x46c7d0
mov edx, 1
test edx, edx
je 0x46c7cb
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x46c121
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xc], 0
jne 0x46c121
jmp 0x46c7cb
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x450eb0
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCRT.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x46c15b
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x450ec0
mov ecx, dword [ebp - 0xc]
push ecx
call sub.MSVCRT.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x46c182
mov dword [ebp - 8], 2
xor edx, edx
test edx, edx
je 0x46c195
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
jmp 0x46c1a1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0
je 0x46c7bd
mov dword [ebp - 0x28], 0x80000000
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
and edx, dword [ebp - 0x28]
test edx, edx
je 0x46c1d1
jmp 0x46c79c
xor eax, eax
test eax, eax
je 0x46c530
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 8], 1
jne 0x46c52b
push 0x450ecc
mov eax, dword [ebp - 0x14]
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x46c211
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4a006c]
mov dword [ecx], edx
push 0x450edc
mov eax, dword [ebp - 0x14]
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x46c232
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4a0068]
mov dword [ecx], edx
push 0x450eec
mov eax, dword [ebp - 0x14]
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x46c253
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4a0074]
mov dword [ecx], edx
push 0x450ef8
mov eax, dword [ebp - 0x14]
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x46c274
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4a0070]
mov dword [ecx], edx
push 0x450f04
mov eax, dword [ebp - 0x14]
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x46c295
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4a0060]
mov dword [ecx], edx
push 0x450f0c
mov eax, dword [ebp - 0x14]
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x46c2b6
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4a004c]
mov dword [ecx], edx
push 0x450f18
mov eax, dword [ebp - 0x14]
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x46c2d7
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4a0050]
mov dword [ecx], edx
push 0x450f20
mov eax, dword [ebp - 0x14]
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x46c2f8
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4a001c]
mov dword [ecx], edx
push 0x450f30
mov eax, dword [ebp - 0x14]
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x46c319
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4a0018]
mov dword [ecx], edx
push 0x450f40
mov eax, dword [ebp - 0x14]
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x46c33a
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4a0038]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
and eax, 0xff
cmp eax, 1
jge 0x46c52b
push 0x450f5c
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x46c36b
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a005c]
mov dword [edx], eax
push 0x450f64
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x46c38b
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a0054]
mov dword [edx], eax
push 0x450f6c
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x46c3ab
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a0058]
mov dword [edx], eax
push 0x450f74
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x46c3cb
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a0090]
mov dword [edx], eax
push 0x450f80
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x46c3eb
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a0078]
mov dword [edx], eax
push 0x450f94
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x46c40b
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a007c]
mov dword [edx], eax
push 0x450fa4
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x46c42b
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a008c]
mov dword [edx], eax
push 0x450fb0
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x46c44b
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a0088]
mov dword [edx], eax
push 0x450fbc
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x46c46b
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a0080]
mov dword [edx], eax
push 0x450fcc
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x46c48b
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a0084]
mov dword [edx], eax
push 0x450fd8
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x46c4ab
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a0048]
mov dword [edx], eax
push 0x450fec
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x46c4cb
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a0044]
mov dword [edx], eax
push 0x451000
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x46c4eb
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a0040]
mov dword [edx], eax
push 0x451010
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x46c50b
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a003c]
mov dword [edx], eax
push 0x451020
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x46c52b
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a0034]
mov dword [edx], eax
jmp 0x46c79c
cmp dword [ebp - 8], 1
jne 0x46c79c
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
cmp edx, dword [0x4a01e8]
jne 0x46c552
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x4a006c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
cmp eax, dword [0x4a01e4]
jne 0x46c56a
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4a0068]
mov dword [ecx], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
cmp ecx, dword [0x4a0240]
jne 0x46c581
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a0074]
mov dword [edx], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
cmp edx, dword [0x4a023c]
jne 0x46c599
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x4a0070]
mov dword [eax], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
cmp eax, dword [0x4a0238]
jne 0x46c5b1
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4a0060]
mov dword [ecx], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
cmp ecx, dword [0x4a020c]
jne 0x46c5c8
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a004c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
cmp edx, dword [0x4a0208]
jne 0x46c5e0
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x4a0050]
mov dword [eax], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
cmp eax, dword [0x4a01f0]
jne 0x46c5f8
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4a001c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
cmp ecx, dword [0x4a01ec]
jne 0x46c60f
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a0018]
mov dword [edx], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
cmp edx, dword [0x4a01f4]
jne 0x46c627
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x4a0038]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
and edx, 0xff
cmp edx, 1
jge 0x46c79c
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
cmp ecx, dword [0x4a0234]
jne 0x46c650
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a005c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
cmp edx, dword [0x4a0230]
jne 0x46c668
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x4a0054]
mov dword [eax], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
cmp eax, dword [0x4a022c]
jne 0x46c680
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4a0058]
mov dword [ecx], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
cmp ecx, dword [0x4a0228]
jne 0x46c697
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a0090]
mov dword [edx], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
cmp edx, dword [0x4a0224]
jne 0x46c6af
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x4a0078]
mov dword [eax], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
cmp eax, dword [0x4a0220]
jne 0x46c6c7
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4a007c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
cmp ecx, dword [0x4a021c]
jne 0x46c6de
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a008c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
cmp edx, dword [0x4a0218]
jne 0x46c6f6
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x4a0088]
mov dword [eax], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
cmp eax, dword [0x4a0214]
jne 0x46c70e
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4a0080]
mov dword [ecx], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
cmp ecx, dword [0x4a0210]
jne 0x46c725
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a0084]
mov dword [edx], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
cmp edx, dword [0x4a0204]
jne 0x46c73d
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x4a0048]
mov dword [eax], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
cmp eax, dword [0x4a0200]
jne 0x46c755
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4a0044]
mov dword [ecx], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
cmp ecx, dword [0x4a01fc]
jne 0x46c76c
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4a0040]
mov dword [edx], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
cmp edx, dword [0x4a01f8]
jne 0x46c784
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x4a003c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
cmp eax, dword [0x4a01e0]
jne 0x46c79c
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4a0034]
mov dword [ecx], edx
cmp dword [ebp - 0x20], 0
jne 0x46c7a6
xor eax, eax
jmp 0x46c7d0
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x24]
add ecx, 4
mov dword [ebp - 0x24], ecx
jmp 0x46c1ad
mov edx, dword [ebp - 4]
add edx, 0x14
mov dword [ebp - 4], edx
jmp 0x46c0fd
mov eax, 1
mov esp, ebp
pop ebp
ret