Function at 0x410130
Capabilities:
Parse pe header

Disassembly:
push ebp
lea ebp, [esp - 0xc4]
sub esp, 0xc4
push 0xfffffffffffffffe
push 0x508f48
push 0x4b7620
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x52e144]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0xc0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0xcc]
mov dword [ebp - 0x4c], esi
mov edi, dword [ebp + 0xd0]
mov dword [ebp - 0x44], edi
mov eax, dword [ebp + 0xd4]
mov dword [ebp - 0x34], eax
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], ebx
cmp dword [0x537c84], ebx
je 0x4101aa
call fcn.00492260
lea ecx, [ebp - 0x28]
push ecx
push 0x40
lea edx, [ebp]
push edx
push edi
push esi
call dword [0x5385e0]
cmp eax, ebx
je 0x410436
cmp dword [ebp - 0x28], 0x40
jne 0x410436
mov eax, 0x5a4d
cmp word [ebp], ax
jne 0x410436
lea ecx, [ebp - 0x28]
push ecx
push 0xf8
lea edx, [ebp - 0x154]
push edx
mov eax, dword [ebp + 0x3c]
add edi, eax
push edi
push esi
call dword [0x5385e0]
cmp eax, ebx
je 0x410436
cmp dword [ebp - 0x28], 0xf8
jne 0x410436
cmp dword [ebp - 0x154], 0x4550
jne 0x410436
mov ecx, 0x20b
cmp word [ebp - 0x13c], cx
jne 0x41023e
mov edi, dword [ebp - 0xcc]
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0x20], edx
jmp 0x41024d
mov edi, dword [ebp - 0xdc]
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x20], eax
cmp edi, ebx
je 0x410436
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004b97b1
add esp, 4
mov ebx, eax
mov dword [ebp - 0x48], ebx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x20]
push eax
push ebx
mov ecx, dword [ebp - 0x44]
add ecx, edi
push ecx
push esi
call dword [0x5385e0]
xor ecx, ecx
cmp eax, ecx
je 0x41042d
mov edx, dword [ebp - 0x20]
cmp dword [ebp - 0x28], edx
jne 0x41042d
add edx, edi
mov dword [ebp - 0x24], ecx
mov esi, dword [ebp - 0x34]
cmp esi, 0x10000
jae 0x4102ad
mov dword [ebp - 0x24], esi
lea eax, [esi - 1]
jmp 0x41038d
mov dword [ebp - 0x40], ecx
mov eax, esi
mov dword [ebp - 0x2c], eax
cmp byte [eax], 0
je 0x4102d8
inc eax
mov dword [ebp - 0x2c], eax
inc ecx
mov dword [ebp - 0x40], ecx
cmp ecx, 0x100
jb 0x4102b5
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x41048b
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 0x20]
lea ecx, [edx + edi]
cmp eax, ecx
ja 0x41042d
cmp eax, edi
jb 0x41042d
sub eax, edi
add eax, ebx
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebx + 0x18]
jae 0x41035c
mov eax, dword [eax]
mov edx, dword [ebp - 0x20]
lea ecx, [edx + edi]
cmp eax, ecx
ja 0x41035c
cmp eax, edi
jb 0x41035c
sub eax, edi
add eax, ebx
mov ecx, esi
xor edx, edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x58], eax
cmp edx, dword [ebp - 0x40]
jae 0x410343
movzx esi, byte [eax]
movsx ebx, byte [ecx]
sub esi, ebx
mov ebx, dword [ebp - 0x48]
jne 0x41034e
inc eax
inc ecx
inc edx
jmp 0x410323
mov al, 1
test al, al
je 0x41034e
mov byte [ebp - 0x19], al
jmp 0x410366
mov eax, dword [ebp - 0x3c]
add eax, 4
inc dword [ebp - 0x24]
mov esi, dword [ebp - 0x34]
jmp 0x410300
cmp byte [ebp - 0x19], 0
je 0x41042d
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebp - 0x20]
lea edx, [eax + edi]
cmp ecx, edx
ja 0x41042d
cmp ecx, edi
jb 0x41042d
mov eax, dword [ebp - 0x24]
add eax, eax
sub eax, edi
add eax, ecx
add eax, ebx
movzx eax, word [eax]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebx + 0x1c]
cmp ecx, edx
ja 0x41042d
cmp ecx, edi
jb 0x41042d
add eax, eax
add eax, eax
sub eax, edi
add eax, ecx
add eax, ebx
mov esi, dword [eax]
mov eax, dword [ebp - 0x44]
add esi, eax
mov dword [ebp - 0x30], esi
lea ecx, [edi + eax]
cmp esi, ecx
jb 0x41041b
mov edx, dword [ebp - 0x20]
add edx, edi
add edx, eax
cmp esi, edx
jae 0x41041b
lea eax, [ebp - 0x28]
push eax
push 0x80
lea ecx, [ebp + 0x40]
push ecx
push esi
mov esi, dword [ebp - 0x4c]
push esi
call dword [0x5385e0]
test eax, eax
je 0x41042d
push 0x50e4dc
lea edx, [ebp + 0x40]
push edx
call fcn.004b9929
add esp, 8
mov dword [ebp - 0x54], eax
test eax, eax
je 0x410404
mov byte [eax], 0
inc eax
mov dword [ebp - 0x54], eax
push eax
lea eax, [ebp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push esi
call fcn.00410130
mov esi, eax
mov dword [ebp - 0x30], esi
push ebx
call fcn.004b97a6
add esp, 4
mov dword [ebp - 4], 0xfffffffe
jmp 0x410489
push ebx
call fcn.004b97a6
add esp, 4
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x41048b
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc0]
xor ecx, ebp
call fcn.004b6da3
add ebp, 0xc4
mov esp, ebp
pop ebp
ret 0xc