Function at 0x416930
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x190
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x416972
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x416972
cmp dword [ebp + 0x1c], 0
je 0x416972
cmp dword [ebp + 0x20], 0
je 0x416972
mov ebx, ecx
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0x100
jb 0x416997
push str.idmap:_target_path_exceeds_idmap_file_format_limit_of_255_chars
jmp 0x416977
push str.idmap:_unexpected_NULL_parameter
push str.ResourceType
push 6
call fcn.00420f20
add esp, 0xc
mov esi, 0x80000000
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0x100
jb 0x4169ae
push str.idmap:_overlay_path_exceeds_idmap_file_format_limit_of_255_chars
jmp 0x416977
cmp dword [ebx + 0x68], 0
je 0x416c35
mov eax, dword [ebx + 0x64]
mov eax, dword [eax]
cmp dword [eax + 0x14], 0
je 0x416c35
mov eax, dword [ebp + 8]
cmp dword [eax + 0x68], 0
je 0x416c3f
mov eax, dword [eax + 0x64]
mov eax, dword [eax]
cmp dword [eax + 0x14], 0
je 0x416c3f
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov esi, 0x80000000
cmp byte [eax + 0xc8], 0
jne 0x41698b
mov ecx, dword [eax + 8]
xorps xmm0, xmm0
movaps xmmword [esp + 0x170], xmm0
movaps xmmword [esp + 0x160], xmm0
movaps xmmword [esp + 0x150], xmm0
movaps xmmword [esp + 0x140], xmm0
movaps xmmword [esp + 0x130], xmm0
movaps xmmword [esp + 0x120], xmm0
movaps xmmword [esp + 0x110], xmm0
movaps xmmword [esp + 0x100], xmm0
movaps xmmword [esp + 0xf0], xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xd0], xmm0
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
lea eax, [esp + 0x80]
mov dword [esp + 0x30], ecx
movzx edx, word [ecx + 0xc]
mov ecx, eax
test dx, dx
je 0x416ab9
xor esi, esi
lea ecx, [esp + 0x80]
mov word [ecx], dx
mov edx, dword [esp + 0x30]
movzx edx, word [edx + esi*2 + 0xe]
add ecx, 2
test dx, dx
je 0x416ab9
lea edi, [esi + 1]
cmp esi, 0x7e
mov esi, edi
jb 0x416a9b
mov word [ecx], 0
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x1c]
push eax
call fcn.0041dd70
mov eax, dword [ebx + 0x64]
mov esi, dword [eax]
push 0xc
call fcn.004227e0
add esp, 4
lea ecx, [eax + 4]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0xc], esi
lea eax, [esi + 0x60]
mov dword [esp + 0x68], eax
xor edx, edx
mov dword [esp + 0x6c], ebx
jmp 0x416b23
mov edx, dword [esp + 0x34]
add edx, 1
cmp edx, 0x100
je 0x416c49
mov eax, edx
shr eax, 4
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + eax*4 + 0x20]
mov dword [esp + 0x34], edx
mov ecx, edx
and ecx, 0xf
test eax, eax
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
cmove eax, dword [esp + 0x68]
cmp dword [eax + 8], 0
je 0x416b10
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
cmp dword [eax + 8], 0
je 0x416b10
mov eax, dword [esp + 0x34]
shl eax, 0x10
add eax, 0x10000
and eax, 0xff0000
mov dword [esp + 0x18], eax
xor edi, edi
jmp 0x416b90
mov ebx, dword [esp + 0x6c]
add edi, 1
mov eax, dword [esp + 0x10]
cmp edi, dword [eax + 8]
jae 0x416b10
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 8]
shl eax, 0x18
add eax, dword [esp + 0x18]
movzx esi, di
or esi, eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
mov ecx, ebx
lea eax, [esp + 0x40]
push eax
push 0
push esi
call fcn.004120e0
test al, al
je 0x416b84
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x70], eax
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
call fcn.0041e000
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x20]
push edx
push eax
push ebx
push dword [esp + 0x7c]
push dword [esp + 0x84]
push dword [esp + 0x8c]
push dword [esp + 0x2c]
call fcn.00413050
test eax, eax
je 0x416b80
mov ecx, dword [esp + 0x38]
push esi
push eax
call fcn.00419010
jmp 0x416b80
push str.idmap:_invalid_overlay_package
jmp 0x416977
push str.idmap:_invalid_target_package
jmp 0x416977
mov eax, dword [esp + 0x38]
cmp dword [eax + 8], 0
je 0x4170d2
xorps xmm0, xmm0
movups xmmword [esp + 0x4c], xmm0
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x7c], eax
lea esi, [esp + 0x7c]
lea ecx, [esp + 0x40]
push esi
call fcn.00419170
mov ecx, esi
call fcn.00419510
mov edi, dword [ebp + 0x20]
mov dword [edi], 0x214
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x20]
push dword [esp + 0x40]
call fcn.00419540
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x54]
mov ebx, dword [edi]
cmp ecx, eax
mov dword [esp + 0x18], ecx
jne 0x416d24
mov edi, dword [ebp + 0x14]
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
test eax, eax
je 0x4170ed
mov dword [eax], 0x504d4449
mov dword [eax + 4], 1
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
lea ecx, [eax + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0xc], ecx
xor ebx, ebx
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov edx, dword [esp + 0x18]
add esp, 4
jmp 0x416df8
mov ecx, edx
lea eax, [esp + 0x24]
cmp edx, eax
je 0x416ccc
add ebx, 8
mov eax, dword [ebp + 0x20]
mov dword [eax], ebx
test esi, esi
mov dword [esp + 0xc], ebx
je 0x416d79
mov dl, byte [ecx + 0x10]
mov edi, esi
lea ebx, [esp + 0x54]
cmp byte [edi + 0x10], dl
jbe 0x416d60
nop word cs:[eax + eax]
nop dword [eax]
mov eax, dword [edi]
jmp 0x416d68
jae 0x416d7d
mov eax, dword [edi + 4]
add edi, 4
mov ebx, edi
test eax, eax
je 0x416d7d
mov ebx, edi
mov edi, eax
cmp byte [edi + 0x10], dl
jbe 0x416d60
jmp 0x416d50
lea ebx, [esp + 0x54]
mov eax, dword [ebx]
mov eax, dword [eax + 0x14]
mov ebx, dword [esp + 0xc]
lea ebx, [ebx + eax*4]
mov eax, dword [ebp + 0x20]
mov dword [eax], ebx
mov eax, dword [ecx + 4]
test eax, eax
je 0x416db0
nop word cs:[eax + eax]
nop
mov edx, eax
mov eax, dword [eax]
test eax, eax
jne 0x416da0
mov edi, dword [ebp + 0x14]
jmp 0x416d1a
mov edx, dword [ecx + 8]
cmp dword [edx], ecx
mov edi, dword [ebp + 0x14]
je 0x416d1a
add ecx, 8
nop word cs:[eax + eax]
nop dword [eax + eax]
mov eax, dword [ecx]
lea ecx, [eax + 8]
mov edx, dword [eax + 8]
cmp dword [edx], eax
jne 0x416dd0
jmp 0x416d1a
mov ecx, dword [ebp + 0x14]
movzx ecx, byte [ecx + edi + 3]
mov byte [edx + edi + 3], cl
add ebx, 1
cmp ebx, 0x100
je 0x416e45
mov edi, ebx
cmp ebx, eax
jae 0x416e07
mov ecx, dword [ebp + 0x14]
movzx ecx, byte [ecx + edi]
jmp 0x416e09
xor ecx, ecx
mov byte [edx + edi], cl
lea ebx, [edi + 1]
cmp ebx, eax
jae 0x416e1d
mov ecx, dword [ebp + 0x14]
movzx ecx, byte [ecx + edi + 1]
jmp 0x416e1f
xor ecx, ecx
mov byte [edx + edi + 1], cl
add ebx, 1
cmp ebx, eax
jae 0x416e34
mov ecx, dword [ebp + 0x14]
movzx ecx, byte [ecx + edi + 2]
jmp 0x416e36
xor ecx, ecx
mov byte [edx + edi + 2], cl
add ebx, 1
cmp ebx, eax
jb 0x416de1
xor ecx, ecx
jmp 0x416de9
xor ebx, ebx
push dword [ebp + 0x18]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0xc], eax
jmp 0x416e71
mov eax, dword [ebp + 0x18]
movzx eax, byte [eax + ebx + 3]
mov byte [edi + ecx + 7], al
add edx, 1
mov ebx, edx
cmp edx, 0x100
je 0x416ecc
mov eax, dword [esp + 0x14]
lea ecx, [eax + ebx]
cmp ebx, dword [esp + 0xc]
jae 0x416e87
mov eax, dword [ebp + 0x18]
movzx edx, byte [eax + ebx]
jmp 0x416e89
xor edx, edx
mov byte [ecx + edi + 4], dl
lea edx, [ebx + 1]
cmp edx, dword [esp + 0xc]
jae 0x416ea0
mov eax, dword [ebp + 0x18]
movzx eax, byte [eax + ebx + 1]
jmp 0x416ea2
xor eax, eax
mov byte [edi + ecx + 5], al
add edx, 1
cmp edx, dword [esp + 0xc]
jae 0x416eb9
mov eax, dword [ebp + 0x18]
movzx eax, byte [eax + ebx + 2]
jmp 0x416ebb
xor eax, eax
mov byte [edi + ecx + 6], al
add edx, 1
cmp edx, dword [esp + 0xc]
jb 0x416e58
xor eax, eax
jmp 0x416e60
mov eax, dword [esp + 0x30]
movzx eax, word [eax + 8]
mov ebx, dword [esp + 0x10]
mov word [ebx + 0x210], ax
movzx eax, word [esp + 0x28]
mov word [ebx + 0x212], ax
lea eax, [esp + 0x24]
mov edi, dword [esp + 0x18]
cmp edi, eax
je 0x4170ce
add ebx, 0x214
test esi, esi
je 0x416f49
mov al, byte [edi + 0x10]
lea ecx, [esp + 0x54]
cmp byte [esi + 0x10], al
jbe 0x416f30
nop word cs:[eax + eax]
nop dword [eax + eax]
mov edx, dword [esi]
jmp 0x416f38
jae 0x416f4d
mov edx, dword [esi + 4]
add esi, 4
mov ecx, esi
test edx, edx
je 0x416f4d
mov ecx, esi
mov esi, edx
cmp byte [esi + 0x10], al
jbe 0x416f30
jmp 0x416f20
lea ecx, [esp + 0x54]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
mov ecx, ebx
mov ebx, dword [edi + 0x14]
movzx eax, byte [ebx + 0x12]
mov word [ecx], ax
movzx eax, byte [ebx + 0x16]
mov word [ecx + 2], ax
mov eax, edx
mov dword [esp + 0x14], edx
mov word [ecx + 4], dx
movzx eax, word [ebx + 0x10]
mov word [ecx + 6], ax
add ecx, 8
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edi
lea eax, [edi + 0x18]
mov dword [esp + 0xc], eax
cmp ebx, eax
je 0x417071
mov edi, dword [esp + 0x10]
jmp 0x416faf
add edi, 4
mov ebx, eax
cmp eax, dword [esp + 0xc]
je 0x417071
mov eax, dword [esp + 0x48]
test eax, eax
je 0x417000
mov ecx, dword [ebx + 0x10]
lea edx, [esp + 0x48]
cmp dword [eax + 0x10], ecx
jbe 0x416fe0
nop word cs:[eax + eax]
nop dword [eax]
mov esi, dword [eax]
jmp 0x416fe8
jae 0x417004
mov esi, dword [eax + 4]
add eax, 4
mov edx, eax
test esi, esi
je 0x417004
mov edx, eax
mov eax, esi
cmp dword [eax + 0x10], ecx
jbe 0x416fe0
jmp 0x416fd0
lea edx, [esp + 0x48]
mov eax, dword [edx]
mov esi, dword [eax + 0x14]
test esi, esi
je 0x417026
lea eax, [esi*4]
push eax
push 0xff
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea edi, [edi + esi*4]
movzx eax, word [ebx + 0x14]
mov dword [edi], eax
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x417050
nop word cs:[eax + eax]
nop dword [eax]
mov eax, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x417040
jmp 0x416fa0
mov eax, dword [ebx + 8]
cmp dword [eax], ebx
je 0x416fa0
add ebx, 8
nop
mov ecx, dword [ebx]
lea ebx, [ecx + 8]
mov eax, dword [ecx + 8]
cmp dword [eax], ecx
jne 0x417060
jmp 0x416fa0
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x41708e
nop dword [eax]
mov eax, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x417080
mov ebx, dword [esp + 0x10]
jmp 0x4170ac
mov eax, dword [edx + 8]
cmp dword [eax], edx
mov ebx, dword [esp + 0x10]
je 0x4170ac
add edx, 8
nop dword [eax]
mov ecx, dword [edx]
lea edx, [ecx + 8]
mov eax, dword [ecx + 8]
cmp dword [eax], ecx
jne 0x4170a0
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x4170ce
mov ecx, dword [esp + 0x14]
lea ebx, [ebx + ecx*4]
mov esi, dword [esp + 0x54]
mov edi, eax
test esi, esi
jne 0x416f05
jmp 0x416f49
xor esi, esi
jmp 0x4170f2
push str.idmap:_no_matching_resources
push str.ResourceType
push 6
call fcn.00420f20
add esp, 0xc
mov esi, 0x80000000
jmp 0x417108
mov esi, 0xfffffff4
lea ecx, [esp + 0x20]
push dword [esp + 0x24]
call fcn.0041b0c0
lea ecx, [esp + 0x40]
call fcn.004195d0
lea ecx, [esp + 0x3c]
call fcn.00419510
lea ecx, [esp + 0x1c]
call fcn.0041da60
jmp 0x41698b