Function at 0x415f50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x457664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x517f6c]
mov dword [ebp - 0x1c], 0x1b451bae
mov dword [ebp - 0x18], 0x35b354c7
mov dword [ebp - 0x14], 0xdfc835cf
mov dword [ebp - 0x10], 0x5844c45
mov dword [ebp - 0xc], 0xbe103d94
mov word [ebp - 8], 0x258b
mov byte [ebp - 6], 0x62
mov dword [ebp - 0x34], 0x1b451bae
mov dword [ebp - 0x30], 0x35b354c7
mov dword [ebp - 0x2c], 0xdfc835cf
mov dword [ebp - 0x28], 0x5844c45
mov dword [ebp - 0x24], 0xbe103d94
mov word [ebp - 0x20], 0x258b
mov byte [ebp - 0x1e], 0x62
push edi
test esi, esi
jne 0x416200
mov esi, dword [0x517e70]
test esi, esi
jne 0x415fe2
call fcn.00418770
mov esi, eax
mov dword [0x517e70], esi
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.0041fef0
mov ecx, 0x5a4d
test esi, esi
je 0x4160a5
cmp byte [ebp - 0x1c], 0x30
je 0x4160a5
cmp word [esi], cx
jne 0x41609b
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x41609b
add eax, 0x18
je 0x41609b
add eax, 0x60
mov dword [ebp - 0x48], eax
je 0x41609b
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
add eax, esi
je 0x41609b
mov ecx, dword [eax + 0x20]
add ecx, esi
mov dword [ebp - 0x38], ecx
je 0x41609b
mov edx, dword [eax + 0x1c]
add edx, esi
mov dword [ebp - 0x40], edx
je 0x41609b
mov ebx, dword [eax + 0x18]
test ebx, ebx
je 0x41609b
mov eax, dword [eax + 0x24]
mov edi, 0
add eax, esi
mov dword [ebp - 0x3c], eax
je 0x41609b
mov eax, dword [ecx + edi*4]
lea ecx, [ebp - 0x1c]
add eax, esi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x416086
test dl, dl
je 0x416082
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x416086
add ecx, 2
add eax, 2
test dl, dl
jne 0x416066
xor eax, eax
jmp 0x41608b
sbb eax, eax
or eax, 1
test eax, eax
je 0x416181
mov ecx, dword [ebp - 0x38]
inc edi
cmp edi, ebx
jb 0x41605e
mov dword [0x517f6c], 0
call fcn.004199a0
push 0
push 0
mov esi, eax
lea eax, [ebp - 0x34]
push 0
push eax
mov dword [0x517e8c], esi
call fcn.0041fef0
test esi, esi
je 0x416232
cmp byte [ebp - 0x34], 0x30
je 0x416232
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x416228
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x416228
add eax, 0x18
je 0x416228
add eax, 0x60
mov dword [ebp - 0x38], eax
je 0x416228
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
add eax, esi
je 0x416228
mov ecx, dword [eax + 0x20]
add ecx, esi
mov dword [ebp - 0x48], ecx
je 0x416228
mov edx, dword [eax + 0x1c]
add edx, esi
mov dword [ebp - 0x40], edx
je 0x416228
mov ebx, dword [eax + 0x18]
test ebx, ebx
je 0x416228
mov eax, dword [eax + 0x24]
mov edi, 0
add eax, esi
mov dword [ebp - 0x44], eax
je 0x416228
mov eax, dword [ecx + edi*4]
lea ecx, [ebp - 0x34]
add eax, esi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x416213
test dl, dl
je 0x41617a
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x416213
add ecx, 2
add eax, 2
test dl, dl
jne 0x416156
xor eax, eax
jmp 0x416218
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
movzx eax, word [eax + edi*2]
mov ecx, dword [ecx + eax*4]
cmp ecx, edx
jb 0x4161f0
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 4]
add eax, edx
cmp ecx, eax
jae 0x4161f0
lea eax, [ecx + esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov edi, eax
push 0x2e
push edi
call sub.VCRUNTIME140.dll_strchr
add esp, 0xc
mov esi, eax
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, eax
test ecx, ecx
je 0x4161e2
lea eax, [esi + 1]
push eax
push ecx
call fcn.004131f0
push edi
mov esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x4161f2
push edi
xor esi, esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x4161f2
add esi, ecx
mov dword [0x517f6c], esi
test esi, esi
je 0x4160a5
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441849
mov esp, ebp
pop ebp
ret
sbb eax, eax
or eax, 1
test eax, eax
je 0x416245
mov ecx, dword [ebp - 0x48]
inc edi
cmp edi, ebx
jb 0x41614e
mov dword [0x517f6c], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441849
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
movzx eax, word [eax + edi*2]
mov ecx, dword [ecx + eax*4]
cmp ecx, edx
jb 0x4162b4
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
add eax, edx
cmp ecx, eax
jae 0x4162b4
lea eax, [ecx + esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov edi, eax
push 0x2e
push edi
call sub.VCRUNTIME140.dll_strchr
add esp, 0xc
mov esi, eax
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, eax
test ecx, ecx
je 0x4162a6
lea eax, [esi + 1]
push eax
push ecx
call fcn.004131f0
push edi
mov esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x4162b6
push edi
xor esi, esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x4162b6
add esi, ecx
mov dword [0x517f6c], esi
test esi, esi
jne 0x416200
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441849
mov esp, ebp
pop ebp
ret