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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x58
mov edi, dword [ecx + 4]
mov eax, dword [ecx]
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x24], edi
mov edi, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ecx
test byte [0x40906c], 8
jne 0x4067d8
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0
mov dword [esp], 0x409100
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x24]
sub esp, 4
test edx, edx
je 0x4067b9
mov dword [ebp - 0x1c], 0
add ebx, 0x14
jmp 0x406658
mov eax, dword [0x4092e8]
inc dword [ebp - 0x1c]
add ebx, 0x54
mov dword [esi], 0x4092e4
mov dword [esi + 4], eax
mov dword [eax], esi
mov eax, dword [ebp - 0x1c]
mov dword [0x4092e8], esi
cmp dword [ebp - 0x24], eax
je 0x4067b9
mov dword [esp], 0x8c
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x406853
mov edx, dword [ebx]
lea edi, [eax + 0x18]
mov dword [eax + 0x4c], edx
mov edx, dword [ebx + 4]
mov dword [eax + 0x50], edx
mov edx, dword [ebx + 8]
mov dword [eax + 0x54], edx
mov edx, dword [ebx + 0xc]
mov dword [eax + 0x58], edx
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x5c], edx
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x60], edx
mov edx, dword [ebx + 0x18]
mov dword [eax + 0x64], edx
mov edx, dword [ebx + 0x1c]
mov dword [eax + 0x68], edx
mov edx, dword [ebx + 0x20]
mov dword [eax + 0x6c], edx
mov edx, dword [ebx + 0x24]
mov dword [eax + 0x70], edx
mov edx, dword [ebx + 0x28]
mov dword [eax + 0x74], edx
mov edx, dword [ebx + 0x2c]
mov dword [eax + 0x78], edx
mov edx, dword [ebx + 0x30]
mov dword [eax + 0x7c], edx
mov edx, dword [ebx + 0x34]
mov dword [eax + 0x80], edx
mov edx, dword [ebx + 0x38]
mov dword [eax + 0x84], edx
mov edx, dword [ebx + 0x3c]
mov dword [eax + 0x88], edx
lea edx, [eax + 0x2c]
lea eax, [eax + 0x48]
mov dword [esp + 0x14], eax
lea eax, [esi + 0x44]
mov dword [esp + 0x10], eax
lea eax, [esi + 0x40]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
mov eax, dword [ebx - 4]
mov dword [ebp - 0x20], edx
mov dword [esp], eax
call sym._TowerExplode_24
mov edx, dword [ebp - 0x20]
sub esp, 0x18
test eax, eax
jne 0x4067a0
mov eax, dword [ebx - 0x14]
mov dword [esi + 8], eax
mov eax, dword [ebx - 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [ebx - 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [ebx - 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x406630
lea eax, [esi + 8]
mov ecx, dword [esi + 0x40]
mov dword [esp], eax
mov eax, edi
call sym._find_ept_entry.constprop.0
mov edi, eax
test eax, eax
je 0x406630
mov eax, dword [eax + 0x40]
mov dword [esp], eax
call dword [sym.imp.rpcrt4.dll_I_RpcFree]
mov eax, dword [edi + 0x44]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.rpcrt4.dll_I_RpcFree]
mov eax, dword [edi + 0x48]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.rpcrt4.dll_I_RpcFree]
mov edx, dword [edi]
mov eax, dword [edi + 4]
sub esp, 4
mov dword [edx + 4], eax
mov edx, dword [edi]
mov dword [eax], edx
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x406630
mov ecx, eax
test byte [0x40906c], 4
jne 0x406820
mov eax, dword [ebp - 0x2c]
mov dword [eax], ecx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], 0x409100
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__p___lu___p___lu___p__n
mov dword [esp + 8], str.ept_insert
mov dword [esp + 4], 0x40906c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4065f8
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.TowerExplode_failed__lu_n
mov dword [esp + 8], str.ept_insert
mov dword [esp + 4], 0x40906c
mov dword [esp], 2
mov dword [ebp - 0x1c], eax
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x1c]
jmp 0x4067ab
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0x6d8
jmp 0x4067b9