Function at 0x402090
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x584
mov eax, dword [0x422004]
xor eax, esp
mov dword [esp + 0x580], eax
push ebx
push esi
push edi
mov ebx, edx
mov dword [esp + 0x10], ecx
push 0x2c
push ebx
mov dword [esp + 0x2c], 0
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
push 0x2c
push ebx
mov edi, eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov ecx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
add esp, 0x10
mov byte [esp + 0x148], 0
mov byte [esp + 0x28], 0
cmp edi, esi
je 0x40211c
lea eax, [esi + 2]
test eax, eax
je 0x402117
push 0
push 0
push 0x20
lea edx, [esp + 0x34]
push edx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb al, al
and byte [esp + 0x47], al
xor eax, eax
mov word [esi], ax
test edi, edi
je 0x402158
lea eax, [edi + 2]
cmp esi, eax
je 0x402153
test eax, eax
je 0x402153
push 0
push 0
push 0x140
lea edx, [esp + 0x154]
push edx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call ecx
neg eax
sbb al, al
and byte [esp + 0x287], al
xor eax, eax
mov word [edi], ax
test ebx, ebx
je 0x402185
push 0
push 0
push 0x80
lea eax, [esp + 0x54]
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb al, al
and byte [esp + 0xc7], al
lea eax, [esp + 0x48]
push 0x21
push eax
call dword [sym.imp.VCRUNTIME140.dll_strchr]
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
mov esi, eax
push 0xffffffffffffffff
lea eax, [esp + 0x294]
lea ecx, [esi + 1]
push ecx
push 0x300
push eax
call edi
push 0xffffffffffffffff
lea eax, [esp + 0x64]
mov byte [esi], 0
push eax
lea eax, [esp + 0xe8]
push 0x80
push eax
call edi
add esp, 0x28
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x4021ff
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x402607
mov dword [esp + 0x24], 1
mov eax, ebx
cdq
mov dword [esp + 0x18], eax
lea eax, [esp + 0x288]
push eax
push ebx
mov dword [esp + 0x24], edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x10]
sub eax, ebx
xor esi, esi
cdq
mov ecx, dword [ecx + 0xe621c08]
mov dword [esp + 0x20], ecx
test ecx, ecx
jle 0x402272
mov ecx, dword [esp + 0x10]
add ecx, 0x22318
nop word [eax + eax]
cmp dword [ecx - 8], eax
jne 0x402261
cmp dword [ecx - 4], edx
jne 0x402261
mov edi, dword [esp + 0x18]
cmp dword [ecx], edi
jne 0x402261
mov edi, dword [esp + 0x1c]
cmp dword [ecx + 4], edi
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
je 0x4022bf
inc esi
add ecx, 0x730
cmp esi, dword [esp + 0x20]
jl 0x402240
mov ecx, dword [esp + 0x20]
cmp ecx, 0x20000
jge 0x4025f9
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
imul edi, ecx, 0x730
lea ecx, [esp + 0xc8]
push 0xffffffffffffffff
push ecx
push pe_nt_image_headers32
add edi, dword [esp + 0x1c]
lea eax, [edi + 0x21c08]
push eax
call esi
lea eax, [edi + 0x21c08]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
add esp, 0x18
test eax, eax
je 0x40232d
inc eax
jmp 0x402333
cmp byte [esp + 0x28], 0x30
jne 0x4022e3
cmp byte [esp + 0x29], 0x78
jne 0x4022e3
push 0x10
lea eax, [esp + 0x2c]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
add esp, 0xc
xor edx, edx
jmp 0x4022f2
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
cdq
mov ecx, eax
imul eax, esi, 0x730
mov esi, dword [esp + 0x10]
push 0xffffffffffffffff
mov dword [eax + esi + 0x22328], ecx
lea ecx, [esp + 0x14c]
mov dword [eax + esi + 0x2232c], edx
add eax, 0x22148
push ecx
add eax, esi
push 0x140
push eax
call edi
add esp, 0x10
jmp 0x4025f9
lea eax, [edi + 0x21c08]
push 0xffffffffffffffff
push eax
lea eax, [edi + 0x21d08]
push 0x80
push eax
call esi
push 0xffffffffffffffff
lea eax, [esp + 0x29c]
push eax
lea eax, [edi + 0x21d88]
push 0x300
push eax
call esi
push 0xffffffffffffffff
lea eax, [esp + 0x16c]
push eax
lea eax, [edi + 0x22148]
push 0x140
push eax
call esi
add esp, 0x30
lea eax, [esp + 0x288]
mov ecx, 0x41b674
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4023a3
test dl, dl
je 0x40239f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4023a3
add eax, 2
add ecx, 2
test dl, dl
jne 0x402383
xor eax, eax
jmp 0x4023a8
sbb eax, eax
or eax, 1
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
jne 0x4023e9
mov eax, 0x5a4d
xor ecx, ecx
cmp ax, word [ebx]
jne 0x4023d7
cmp word [ebx + 0x18], 0x40
jb 0x4023d7
mov eax, dword [ebx + 0x3c]
cmp dword [eax + ebx], 0x4550
jne 0x4023d7
mov ecx, dword [eax + ebx + 0x28]
add ecx, ebx
mov eax, ecx
cdq
mov ecx, eax
sub ecx, dword [esp + 0x18]
sbb edx, dword [esp + 0x1c]
jmp 0x40248e
mov al, byte [esp + 0x288]
cmp al, 0x40
jne 0x40241d
cmp byte [esp + 0x289], al
jne 0x402462
cmp byte [esp + 0x28a], al
jne 0x402462
push 0x10
lea eax, [esp + 0x28f]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
jmp 0x40248b
cmp al, 0x23
jne 0x402462
cmp byte [esp + 0x289], al
jne 0x402462
cmp byte [esp + 0x28a], al
jne 0x402462
lea eax, [esp + 0x28b]
push eax
call esi
add esp, 4
movzx eax, ax
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
call eax
xor edx, edx
mov ecx, eax
or eax, edx
je 0x4025f9
sub ecx, dword [esp + 0x18]
sbb edx, dword [esp + 0x1c]
jmp 0x40248e
lea eax, [esp + 0x288]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
call eax
test eax, eax
je 0x4025f9
lea eax, [esp + 0x288]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub eax, ebx
cdq
mov ecx, eax
mov eax, edi
mov dword [eax + 0x22310], ecx
mov dword [eax + 0x22314], edx
cmp byte [esp + 0x28], 0x30
mov eax, dword [esp + 0x18]
mov dword [edi + 0x22318], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov dword [edi + 0x2231c], eax
mov dword [edi + 0x22320], 0
mov dword [edi + 0x22324], 0
jne 0x4024f0
cmp byte [esp + 0x29], 0x78
jne 0x4024f0
push 0x10
lea eax, [esp + 0x2c]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
add esp, 0xc
xor edx, edx
jmp 0x4024fb
lea eax, [esp + 0x28]
push eax
call esi
add esp, 4
cdq
mov esi, dword [esp + 0x10]
mov ecx, eax
imul eax, dword [esp + 0x20], 0x730
mov dword [eax + esi + 0x22328], ecx
mov dword [eax + esi + 0x2232c], edx
lea eax, [esp + 0x14]
mov esi, dword [edi + 0x22318]
add esi, dword [edi + 0x22310]
push eax
mov ecx, esi
movups xmm0, xmmword [esi]
movups xmmword [edi + 0x22288], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x22298], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [edi + 0x222a8], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [edi + 0x222b8], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [edi + 0x222c8], xmm0
call fcn.004015f0
add esp, 4
mov dword [edi + 0x222f8], eax
mov ecx, esi
mov dword [edi + 0x222fc], 0
mov dword [edi + 0x22308], 0
mov dword [edi + 0x2230c], 0
call fcn.004016e0
mov dword [edi + 0x22308], eax
mov eax, dword [esp + 0x14]
or dword [edi + 0x22328], eax
mov dword [edi + 0x2230c], 0
mov al, byte [esi]
cmp al, 0xff
jne 0x4025c0
cmp byte [esi + 1], 0x25
jne 0x4025e0
mov ecx, dword [esi + 2]
mov ecx, dword [ecx]
jmp 0x4025d9
cmp al, 0xe9
jne 0x4025cc
lea ecx, [esi + 5]
add ecx, dword [esi + 1]
jmp 0x4025d9
cmp al, 0xeb
jne 0x4025e0
movsx eax, byte [esi + 1]
lea ecx, [esi + 2]
add ecx, eax
call fcn.004015b0
mov esi, eax
mov eax, esi
cdq
mov dword [edi + 0x22330], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x22334], edx
inc dword [eax + 0xe621c08]
cmp dword [esp + 0x24], 0
je 0x402607
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x58c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00419265
mov esp, ebp
pop ebp
ret