Function at 0x40fd70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419044
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x44], eax
mov esi, dword [ebp + 8]
test eax, eax
je 0x4102c4
test edx, edx
je 0x4102c4
test esi, esi
je 0x4102c4
lea edi, [ebp - 0x40]
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x73], 0
mov dword [ebp - 0x70], edi
mov dword [ebp - 4], 0
cmp dword [eax + 0x20], 0x44
jne 0x40fe0d
mov ecx, edx
mov dword [ebp - 0x50], eax
call fcn.00410c70
mov dword [ebp - 0x40], eax
test eax, eax
je 0x40fe0d
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x40fe17
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x40fe0d
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x80004002
jmp 0x4102c9
mov ecx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp + 0xc]
push 0
push 1
push str.Translations
push esi
mov dword [ecx + 0x34], esi
mov dword [ecx + 0x38], eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x40fe6a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40fe6a
push dword [ebp - 0x48]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40fe6a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x40fe8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40fe7e
movzx eax, ax
or eax, 0x80070000
test eax, eax
je 0x410233
test eax, eax
js 0x410233
xor eax, eax
mov byte [ebp - 4], 1
xor ecx, ecx
push dword [ebp - 0x18]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 0x6c], cl
lea ecx, [ebp - 0x6c]
push eax
mov dword [ebp - 0x58], 0xf
call fcn.0040b550
cmp dword [ebp - 0x58], 0x10
lea ecx, [ebp - 0x6c]
jb 0x40fed4
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
push eax
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call fcn.0040d470
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.00409370
mov esi, dword [ebp - 0xc0]
test esi, esi
je 0x40ff39
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x40ff39
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or ecx, 0xffffffff
mov eax, ecx
lock xadd dword [esi + 8], eax
jne 0x40ff39
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x58]
cmp edx, 0x10
jb 0x40ff71
mov ecx, dword [ebp - 0x6c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ff67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4102e7
push edx
push ecx
call fcn.004119a8
add esp, 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], 0
mov esi, dword [eax]
mov dword [ebp - 0x18], eax
jmp 0x40ff90
cmp esi, eax
je 0x4101c4
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x8c]
push 0
mov dword [ebp - 0x8c], 0
push 0x41b49b
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
call fcn.0040b550
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.0040a610
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xa4]
call fcn.00410e30
mov dword [ebp - 0x48], eax
lea eax, [esi + 0x10]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0xec]
call fcn.0040b110
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx]
mov dword [ebp - 0xd4], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0xd0], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0xcc], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0xc8], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0xc4], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0xc0], eax
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x104]
mov byte [ebp - 4], 9
push eax
lea ecx, [ecx + 0x3c]
call fcn.0040d620
lea ecx, [ebp - 0xec]
call fcn.0040a760
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x90]
cmp edx, 8
jb 0x4100c3
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4100b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4102ec
push edx
push ecx
call fcn.004119a8
add esp, 8
xor eax, eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
cmp edx, 0x10
jb 0x41011e
mov ecx, dword [ebp - 0xbc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410114
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4102ec
push edx
push ecx
call fcn.004119a8
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0xf
mov byte [ebp - 0xbc], 0
cmp edx, 0x10
jb 0x410174
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41016a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4102ec
push edx
push ecx
call fcn.004119a8
add esp, 8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4101a0
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x410196
cmp esi, dword [eax + 8]
jne 0x410196
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x410186
mov esi, eax
mov eax, dword [ebp - 0x18]
jmp 0x40ff90
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4101bc
lea ebx, [ebx]
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4101b0
mov eax, dword [ebp - 0x18]
jmp 0x40ff90
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], vtable.toml::v2::table.0
push dword [eax + 4]
lea eax, [ebp - 0x28]
push eax
mov ecx, eax
call fcn.0040d910
push 0x2c
push dword [ebp - 0x28]
call fcn.004119a8
mov esi, dword [ebp - 0x2c]
add esp, 8
test esi, esi
je 0x410214
or ecx, 0xffffffff
mov eax, ecx
lock xadd dword [esi + 4], eax
jne 0x410214
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x410214
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0
jmp 0x410233
push dword [ebp - 0x44]
call dword [ebp - 0x54]
mov esi, eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], esi
mov edx, dword [eax + 0x3c]
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
add eax, 0x3c
mov dword [ebp - 0x18], eax
mov ecx, dword [edx + 4]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], ecx
cmp byte [ecx + 0xd], 0
jne 0x4102a4
mov edi, ecx
lea esp, [esp]
push dword [edi + 8]
mov ecx, eax
push eax
call fcn.0040ea60
mov esi, edi
mov edi, dword [edi]
lea ecx, [esi + 0x10]
call fcn.0040a760
push 0x40
push esi
call fcn.004119a8
mov eax, dword [ebp - 0x18]
add esp, 8
cmp byte [edi + 0xd], 0
je 0x410270
mov edi, dword [ebp - 0x70]
mov edx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x48]
mov dword [edx + 4], edx
mov dword [edx], edx
mov dword [edx + 8], edx
mov dword [eax + 4], 0
mov eax, dword [edi]
test eax, eax
je 0x4102c0
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x4102c9
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041196a
mov esp, ebp
pop ebp
ret 8
call fcn.004126f0
call fcn.004126f0
int3