Function at 0x40d86d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x42f28c], edi
mov dword [ebp - 8], edi
jle 0x40dfc8
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
xor esi, esi
mov eax, dword [0x42f288]
mov eax, dword [esi + eax + 0xc]
cmp eax, edi
je 0x40d8cb
cmp word [eax], di
je 0x40d8cb
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x14], eax
mov eax, dword [0x42f288]
mov eax, dword [esi + eax + 0x14]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x40dfd0
jmp 0x40d8d5
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
lea eax, [ebp - 0x308]
push str._sinitialize
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x18], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
lea eax, [ebp - 0x308]
push str._sget_icon
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x1c], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
lea eax, [ebp - 0x308]
push str._sfree
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x20], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
lea eax, [ebp - 0x308]
push str._sinitialize_item
push eax
call ebx
add esp, 0xc
push edi
push edi
lea eax, [ebp - 0x108]
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x24], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
lea eax, [ebp - 0x308]
push str._scopy_data
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x28], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
lea eax, [ebp - 0x308]
push str._sdata_to_bytes
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x2c], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
lea eax, [ebp - 0x308]
push str._sbytes_to_data
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x30], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
lea eax, [ebp - 0x308]
push str._sget_file_info
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x34], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
lea eax, [ebp - 0x308]
push str._sdata_to_file
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x38], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
lea eax, [ebp - 0x308]
push str._sfile_to_data
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x3c], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
push str._sfree_data
lea eax, [ebp - 0x308]
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x40], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
lea eax, [ebp - 0x308]
push str._sfree_item
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x44], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
lea eax, [ebp - 0x308]
push str._sget_menu_title
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x48], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
lea eax, [ebp - 0x308]
push str._sget_menu_icon
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x4c], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
lea eax, [ebp - 0x308]
push str._sget_menu_bitmap
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x50], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
lea eax, [ebp - 0x308]
push str._sget_tooltip_text
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x54], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
lea eax, [ebp - 0x308]
push str._swindow_create
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x5c], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
lea eax, [ebp - 0x308]
push str._swindow_destroy
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x60], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
lea eax, [ebp - 0x308]
push str._swindow_show_data
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x64], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
lea eax, [ebp - 0x308]
push str._swindow_save_data
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x68], eax
mov eax, dword [0x42f288]
push dword [esi + eax + 0x10]
lea eax, [ebp - 0x308]
push str._swindow_hide_data
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push edi
push 0x100
push eax
lea eax, [ebp - 0x308]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x42f288]
mov dword [esi + ecx + 0x6c], eax
mov eax, dword [0x42f288]
mov eax, dword [esi + eax + 0x18]
cmp eax, edi
je 0x40dfb3
call eax
inc dword [ebp - 8]
add esi, 0x70
mov eax, dword [ebp - 8]
cmp eax, dword [0x42f28c]
jl 0x40d892
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004175e2
mov eax, dword [ebp - 8]
mov ecx, dword [0x42f288]
imul eax, eax, 0x70
push dword [eax + ecx + 0xc]
lea eax, [ebp - 0x308]
push eax
push str._s_r_n_s
push dword [ebp + 8]
call ebx
add esp, 0x18
xor eax, eax
jmp 0x40dfcb