Function at 0x401f20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
lea eax, [ebp - 0x2c]
push edi
push 0xcf0000
push eax
mov dword [0x413410], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0x258
mov dword [ebp - 0x24], 0x400
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
push edi
sub ecx, edx
mov edx, dword [ebp - 0x24]
push esi
push edi
push edi
sub edx, ebx
push ecx
push edx
push SysReAllocString
push SysReAllocString
push 0xcf0000
push 0x413310
push 0x410174
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
cmp ebx, edi
mov dword [0x413520], ebx
jne 0x401fc2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x410170
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push 0x410160
push edi
call esi
mov dword [ebp + 8], eax
call dword [ebp + 8]
push 0x410154
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp + 8], eax
je 0x40201d
push 0x410140
push eax
call esi
mov ecx, dword [ebp + 8]
push 0x410124
push ecx
mov dword [0x413528], eax
call esi
mov dword [0x41352c], eax
push 0x410114
push edi
call esi
push 0x410104
push edi
mov dword [ebp - 0x18], eax
call esi
mov dword [ebp - 0x1c], eax
mov edi, 0x413208
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
mov dl, byte [ebp + 0xb]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
lea ecx, [ebp - 0x3c]
push edi
mov byte [ebp - 0x3c], dl
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x14], edi
call fcn.00403740
test al, al
je 0x40208c
mov ecx, edi
mov edi, dword [ebp - 0x38]
mov eax, ecx
mov esi, 0x413208
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00403720
xor esi, esi
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], esi
cmp eax, esi
jne 0x40209b
mov eax, 0x40e258
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
push esi
sub edx, edi
mov edi, dword [ebp - 0x2c]
push esi
push esi
push ebx
sub ecx, edi
push edx
push ecx
push esi
push esi
push 0x90000000
push eax
push 0x4100f8
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
lea edx, [ebp - 0x3c]
mov dword [0x413000], eax
push edx
call fcn.00401190
add esp, 4
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x413000]
push 0x413530
push eax
call dword [ebp - 0x18]
mov ecx, dword [0x413000]
push 0x413534
push ecx
call dword [ebp - 0x1c]
mov eax, dword [0x413530]
push 0x413538
push 0x4100d8
push eax
mov edx, dword [eax]
call dword [edx]
mov eax, dword [0x413534]
push 0x41353c
push 0x4100e8
push eax
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [0x41353c]
cmp eax, esi
je 0x402148
mov edx, dword [eax]
push esi
push eax
call dword [edx + 0x74]
mov eax, dword [0x41353c]
push 4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [0x413530]
cmp eax, esi
je 0x4021b8
mov dword [ebp - 0x10], esi
mov dword [ebp + 8], esi
mov edx, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push 0x40e2f0
push eax
mov byte [ebp - 4], 2
call dword [edx]
cmp eax, esi
jl 0x402196
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 8]
push ecx
push 0x40e2e0
mov edx, dword [eax]
push eax
call dword [edx + 0x10]
cmp eax, esi
jl 0x402196
mov eax, dword [ebp + 8]
push 0x413524
push 0x413518
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
cmp eax, esi
je 0x4021a7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0
cmp eax, esi
je 0x4021b8
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [ebp - 0x38]
cmp ecx, esi
je 0x4021db
mov al, byte [ecx - 1]
test al, al
je 0x4021d1
cmp al, 0xff
je 0x4021d1
dec al
mov byte [ecx - 1], al
jmp 0x4021db
dec ecx
push ecx
call fcn.00403aa0
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret