Function at 0x4385c1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x466e6e
call fcn.0045a480
sub esp, 0x14c
and dword [ebp - 0x18], 0
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x29c]
mov ecx, dword [esi + 0x290]
mov dword [ebp - 0x20], eax
imul eax, eax, 0x57
mov edx, dword [ecx + 0x2c]
add eax, edx
test byte [eax + 0x54], 1
je 0x4385ff
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x20], eax
jmp 0x4385e9
lea eax, [ebp - 0x20]
lea ecx, [esi + 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0043a3fc
mov edi, dword [eax]
cmp dword [esi + 0x10], edi
je 0x4386e3
cmp dword [edi + 0x38], 0
jle 0x4386e3
lea ebx, [esi + 0x2dc]
mov ecx, ebx
call fcn.00427de2
push 0
push 0
push 3
push 0x80
add edi, 0x10
push 1
push SysReAllocString
push edi
mov ecx, ebx
call fcn.004280f5
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4386b0
push eax
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xe8], 0x46c6ac
call fcn.00423c9c
mov dword [ebp - 0x18], 1
and dword [ebp - 4], 0
push 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0xe8]
push edi
call fcn.00427bf8
mov eax, dword [ebp - 0xe8]
or dword [ebp - 4], 0xffffffff
push 0x4769e0
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe8], 0x46c6a4
lea eax, [ebp - 0xe8]
push eax
call fcn.0045a5c9
and byte [esi + 0x4c], 0
and byte [esi + 0x4d], 0
mov ecx, ebx
mov byte [esi + 0x4e], 1
lea edi, [esi + 0x320]
call fcn.00437be7
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, dword [edi]
mov dword [esi + 0x328], eax
mov eax, edx
mov dword [esi + 0x32c], eax
jmp 0x438b94
mov eax, dword [esi + 0x31c]
test byte [eax + 0x14], 8
je 0x438827
mov eax, dword [esi + 0x318]
lea ecx, [ebp - 0xd]
push 0
mov ebx, 0x46bb80
mov eax, dword [eax + 0x3a]
mov edi, 0x46bb78
push ecx
push eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x58], edi
call fcn.00416eab
mov eax, dword [esi + 0x31c]
lea ecx, [ebp - 0xe]
push 0
push ecx
mov eax, dword [eax + 0x1e]
lea ecx, [ebp - 0x50]
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x30], edi
call fcn.00416eab
mov eax, dword [esi + 0x318]
mov ecx, esi
mov byte [ebp - 4], 2
mov ax, word [eax + 0x3e]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00437f39
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x110]
push eax
mov byte [ebp - 4], 3
call fcn.0042a0a7
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0042a0a7
add esp, 0x18
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 9
call fcn.0040c1bb
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 8
call fcn.0040c1bb
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 7
call fcn.0040c1bb
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.0040c1bb
lea ebx, [esi + 0x2dc]
mov ecx, ebx
call fcn.00427de2
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0xa0]
imul ecx, ecx, 0x57
push eax
mov eax, dword [esi + 0x290]
mov eax, dword [eax + 0x2c]
movzx eax, word [eax + ecx + 0x55]
push eax
push ebx
mov ecx, esi
call fcn.004380cc
mov ecx, ebx
lea edi, [esi + 0x320]
call fcn.00437be7
or dword [ebp - 4], 0xffffffff
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, dword [edi]
mov dword [esi + 0x328], eax
mov eax, edx
mov dword [esi + 0x32c], eax
lea ecx, [ebp - 0xa0]
call fcn.0040c1bb
jmp 0x438b94
mov eax, dword [eax + 0x2e]
cmp byte [eax], 0
je 0x438add
mov eax, dword [esi + 0x318]
lea ecx, [ebp - 0xe]
push 0
mov ebx, 0x46bb80
mov eax, dword [eax + 0x3a]
mov edi, 0x46bb78
push ecx
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x30], edi
call fcn.00416eab
mov eax, dword [esi + 0x31c]
lea ecx, [ebp - 0xd]
mov dword [ebp - 4], 0xa
mov eax, dword [eax + 0x2e]
mov dword [ebp - 0x78], ebx
xor ebx, ebx
mov dword [ebp - 0x58], edi
push ebx
push ecx
push eax
lea ecx, [ebp - 0x78]
call fcn.00416eab
mov eax, dword [esi + 0x318]
mov ecx, esi
mov byte [ebp - 4], 0xb
mov ax, word [eax + 0x3e]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00437f39
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0xc8]
push eax
mov byte [ebp - 4], 0xc
call fcn.0042a0a7
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xd
push ecx
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0042a0a7
add esp, 0x18
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0x12
call fcn.0040c1bb
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 0x11
call fcn.0040c1bb
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0x10
call fcn.0040c1bb
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xf
call fcn.0040c1bb
lea edi, [esi + 0x2dc]
mov ecx, edi
call fcn.00427de2
push ebx
push ebx
push 3
push 0x80
push 1
lea eax, [ebp - 0xa0]
push SysReAllocString
push eax
mov ecx, edi
call fcn.004280f5
mov ecx, edi
call fcn.00437be7
mov dword [esi + 0x320], eax
mov dword [esi + 0x324], edx
mov eax, dword [esi + 0x320]
push 0xffffffffffffffff
mov dword [esi + 0x328], eax
mov eax, edx
mov dword [esi + 0x32c], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0043b570
mov edx, dword [ebp - 0x14]
xor eax, eax
cmp eax, dword [esi + 0x32c]
jl 0x4389da
jg 0x438977
cmp edx, dword [esi + 0x328]
jbe 0x4389da
push 0x17
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x158], 0x46c6ac
call fcn.00423c9c
mov dword [ebp - 0x18], 2
push ebx
lea eax, [ebp - 0xa0]
push 0x17
push eax
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0x13
call fcn.00427bf8
mov eax, dword [ebp - 0x158]
push 0x4769e0
mov dword [ebp - 4], 0xf
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x158], 0x46c6a4
lea eax, [ebp - 0x158]
push eax
call fcn.0045a5c9
cmp dword [esi + 0x384], edx
lea ecx, [esi + 0x384]
jae 0x438a1d
lea eax, [edx + 4]
push eax
mov dword [ecx], eax
call fcn.0045a603
pop ecx
cmp eax, ebx
setne cl
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], cl
push eax
lea ecx, [esi + 0x37c]
call fcn.0043a1ff
cmp byte [ebp - 0x1c], 0
je 0x438a1d
push dword [ebp - 0x18]
call fcn.00452fcd
pop ecx
mov eax, dword [esi + 0x380]
lea ebx, [esi + 0x380]
lea ecx, [ebp - 0x14]
push 4
push ecx
push eax
call fcn.0045a940
mov ebx, dword [ebx]
add esp, 0xc
add ebx, 4
mov ecx, edi
push dword [ebp - 0x14]
push ebx
call fcn.0043b5f3
mov eax, dword [ebp - 0x14]
add eax, 4
sub dword [esi + 0x320], eax
sbb dword [esi + 0x324], 0
mov eax, dword [esi + 0x320]
cmp dword [esi + 0x374], 0
mov dword [esi + 0x328], eax
mov eax, dword [esi + 0x324]
mov dword [esi + 0x32c], eax
jne 0x438ac1
push str.PUBLICKEY
push 0xd0
push dword [0x498f14]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push dword [0x498f14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov dword [esi + 0x378], eax
push dword [0x498f14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 0x374], eax
add esi, 0x38c
push esi
call fcn.00456971
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0xa0]
jmp 0x43881d
mov ecx, dword [ebp - 0x20]
mov eax, dword [esi + 0x290]
imul ecx, ecx, 0x57
mov eax, dword [eax + 0x2c]
movzx eax, word [eax + ecx + 0x55]
push eax
mov ecx, esi
call fcn.00438402
lea ebx, [esi + 0x2a0]
lea edi, [esi + 0x2dc]
cmp ebx, edi
je 0x438b18
mov ecx, edi
call fcn.00427de2
push ebx
mov ecx, edi
call fcn.00428062
mov eax, dword [esi + 0x318]
mov ecx, dword [eax + 0xa]
mov dword [esi + 0x320], ecx
mov ecx, dword [eax + 0xe]
mov dword [esi + 0x324], ecx
test byte [eax], 1
je 0x438b68
mov eax, dword [esi + 0xec]
mov ecx, dword [esi + 0xe0]
mov dword [esi + 0x328], eax
mov eax, dword [esi + 0xf0]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
mov dword [esi + 0x32c], eax
mov eax, dword [esi + 0xdc]
push ecx
push 0
mov dword [ebp - 0x1c], eax
push eax
jmp 0x438b8d
mov ecx, dword [eax + 0xa]
mov dword [esi + 0x328], ecx
mov ecx, dword [eax + 0xe]
mov dword [esi + 0x32c], ecx
mov ecx, dword [eax + 0x12]
mov eax, dword [eax + 0x16]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 0
push ecx
mov ecx, edi
call fcn.004363b3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret