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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
and esp, 0xfffffff8
sub esp, 0x1c
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 4], 0xa4
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
test eax, eax
je 0x403d7a
mov edi, dword [0x418008]
mov dword [eax], section..bss
mov ebx, eax
mov dword [eax + 4], esi
mov dword [eax + 8], 3
mov dword [eax + 0x14], 0x19
mov dword [eax + 0x18], 1
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
test edi, edi
je 0x403ec0
mov eax, dword [edi + 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x7c]
sub eax, dword [edi + 0x74]
mov dword [ebx + 0x7c], eax
mov eax, dword [edi + 0x80]
sub eax, dword [edi + 0x78]
mov dword [ebx + 0x80], eax
movzx eax, word [edi + 0x24]
mov edx, eax
shl edx, 0x10
or eax, edx
mov dword [ebx + 0x24], eax
mov eax, dword [edi + 0x84]
mov dword [ebx + 0x84], eax
mov eax, dword [edi + 0x88]
mov dword [ebx + 0x88], eax
mov eax, dword [edi + 0x8c]
mov dword [ebx + 0x8c], eax
mov eax, dword [edi + 0x90]
mov dword [ebx + 0x90], eax
mov ecx, dword [edi + 0x34]
mov dword [ebx + 0x34], ecx
mov ecx, dword [edi + 0x38]
mov dword [ebx + 0x38], ecx
mov ecx, dword [edi + 0x3c]
mov dword [ebx + 0x3c], ecx
mov ecx, dword [edi + 0x40]
mov dword [ebx + 0x40], ecx
mov ecx, dword [edi + 0x44]
mov dword [ebx + 0x44], ecx
mov ecx, dword [edi + 0x48]
mov dword [ebx + 0x48], ecx
mov ecx, dword [edi + 0x4c]
mov eax, dword [ebx + 0x90]
mov dword [ebx + 0x4c], ecx
mov ecx, dword [edi + 0x50]
mov dword [ebx + 0x50], ecx
mov ecx, dword [edi + 0x54]
mov dword [ebx + 0x54], ecx
mov ecx, dword [edi + 0x58]
mov dword [ebx + 0x58], ecx
mov ecx, dword [edi + 0x5c]
mov dword [ebx + 0x5c], ecx
mov ecx, dword [edi + 0x60]
mov dword [ebx + 0x60], ecx
mov ecx, dword [edi + 0x64]
mov dword [ebx + 0x64], ecx
mov ecx, dword [edi + 0x68]
mov dword [ebx + 0x68], ecx
mov ecx, dword [edi + 0x6c]
mov dword [ebx + 0x6c], ecx
mov edx, dword [edi + 0x70]
mov dword [ebx + 0x70], edx
test eax, eax
jne 0x403f00
mov edi, dword [0x413004]
test edi, edi
jne 0x403d53
jmp 0x403d86
lea ecx, [edi + 4]
lea edx, [edi + 8]
mov eax, ecx
cmovns eax, edx
mov edx, dword [eax]
test edx, edx
je 0x403d90
mov edi, edx
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [section..data]
test eax, eax
jne 0x403d40
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
test byte [0x413058], 2
jne 0x403f40
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x413004
lea esi, [esi]
nop
lea edx, [ebx + 0x94]
mov dword [ebx + 0x94], edi
mov dword [ebx + 0xa0], 1
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0
mov dword [eax], edx
mov eax, dword [ebx + 0x94]
mov dword [esp + 0x18], edx
test eax, eax
je 0x403dd4
test byte [eax + 0xc], 1
jne 0x403e78
mov eax, dword [0x413004]
and dword [eax + 0xc], 0xfffffffe
mov edi, dword [ebx + 0xc]
mov esi, dword [ebx + 0x10]
mov eax, edi
imul eax, esi
shl eax, 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebx + 0x30], eax
test eax, eax
je 0x40408a
test edi, edi
je 0x403e2d
mov dword [eax], 0x70020
mov eax, 1
cmp edi, 1
je 0x403e2a
lea esi, [esi]
nop
mov edx, dword [ebx + 0x30]
mov dword [edx + eax*4], 0x70020
add eax, 1
cmp eax, dword [ebx + 0xc]
jb 0x403e18
mov esi, dword [ebx + 0x10]
cmp esi, 1
jbe 0x403d7c
mov esi, 1
lea esi, [esi]
nop
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x30]
shl eax, 2
mov dword [esp + 4], ecx
mov edx, eax
mov dword [esp + 8], eax
imul edx, esi
add esi, 1
add edx, ecx
mov dword [esp], edx
call sym._memcpy
cmp esi, dword [ebx + 0x10]
jb 0x403e40
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [eax]
mov ecx, dword [edi + 4]
cmp ecx, eax
je 0x403f6f
test ecx, ecx
je 0x403fe8
test byte [ecx + 0xc], 1
je 0x403fe8
xor dword [edi + 0xc], 1
xor dword [ecx + 0xc], 1
mov eax, dword [edi + 8]
xor dword [eax + 0xc], 1
mov eax, dword [edx]
mov edx, dword [eax]
mov eax, dword [edx]
test eax, eax
je 0x403dd4
test byte [eax + 0xc], 1
jne 0x403e78
jmp 0x403dd4
movd xmm1, ecx
movd xmm0, edx
sub ecx, 1
punpckldq xmm0, xmm1
movd xmm2, ecx
movq qword [eax + 0x28], xmm0
lea eax, [edx - 1]
movd xmm0, eax
mov dword [ebx + 0x24], 0xf50007
mov dword [ebx + 0x88], 0x10190
punpckldq xmm0, xmm2
movq qword [ebx + 0x7c], xmm0
jmp 0x403d2f
lea edx, [eax + eax]
mov dword [esp], edx
mov dword [esp + 0x18], edx
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [esp + 0x18]
test eax, eax
mov dword [ebx + 0x8c], eax
je 0x4040bf
mov ecx, dword [edi + 0x8c]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym._memcpy
jmp 0x403d2f
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esp + 0xc], str.id__x_already_exists_n
mov dword [esp + 8], str.create_screen_buffer
mov dword [esp + 4], 0x413058
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x403d7c
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x403f94
test byte [ecx + 0xc], 1
je 0x403f94
xor dword [edi + 0xc], 1
xor dword [eax + 0xc], 1
mov eax, dword [edi + 8]
xor dword [eax + 0xc], 1
mov eax, dword [edx]
mov edx, dword [eax]
jmp 0x403eaa
mov ecx, dword [eax + 8]
cmp edx, ecx
je 0x40402c
mov ecx, dword [edx]
and dword [ecx + 0xc], 0xfffffffe
mov eax, dword [edx]
mov eax, dword [eax]
or dword [eax + 0xc], 1
mov eax, dword [edx]
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, dword [eax + 4]
test edi, edi
je 0x404077
cmp eax, dword [edi + 4]
je 0x404082
mov dword [edi + 8], ecx
mov edi, dword [ecx + 8]
mov dword [eax + 4], edi
test edi, edi
je 0x403fd6
mov dword [edi], eax
mov dword [ecx + 8], eax
mov edi, dword [eax]
mov dword [ecx], edi
mov dword [eax], ecx
jmp 0x403eaa
mov ecx, dword [eax + 4]
cmp edx, ecx
je 0x404058
mov ecx, dword [edx]
and dword [ecx + 0xc], 0xfffffffe
mov eax, dword [edx]
mov eax, dword [eax]
or dword [eax + 0xc], 1
mov eax, dword [edx]
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, dword [eax + 8]
test edi, edi
je 0x40404b
cmp eax, dword [edi + 4]
je 0x404053
mov dword [edi + 8], ecx
mov edi, dword [ecx + 4]
mov dword [eax + 8], edi
test edi, edi
je 0x40401e
mov dword [edi], eax
mov dword [ecx + 4], eax
mov edi, dword [eax]
mov dword [ecx], edi
mov dword [eax], ecx
jmp 0x403eaa
mov dword [edi + 4], ecx
mov edx, dword [ecx + 4]
mov dword [eax + 8], edx
test edx, edx
je 0x40403b
mov dword [edx], eax
mov dword [ecx + 4], eax
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, eax
mov dword [eax], ecx
jmp 0x403fa1
mov dword [0x413004], ecx
jmp 0x404012
mov dword [edi + 4], ecx
jmp 0x404012
mov dword [edi + 8], ecx
mov edx, dword [ecx + 8]
mov dword [eax + 4], edx
test edx, edx
je 0x404067
mov dword [edx], eax
mov dword [ecx + 8], eax
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, eax
mov dword [eax], ecx
jmp 0x403ff1
mov dword [0x413004], ecx
jmp 0x403fca
mov dword [edi + 4], ecx
jmp 0x403fca
mov eax, dword [ebx]
cmp ebx, dword [eax + 8]
je 0x4040cf
mov eax, dword [esp + 0x18]
call sym._rb_remove.constprop.0
mov eax, dword [ebx + 0x8c]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call esi
mov dword [esp], ebx
xor ebx, ebx
call esi
jmp 0x403d7c
mov dword [esp], ebx
xor ebx, ebx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x403d7c
mov dword [eax + 8], 0
jmp 0x404091