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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d2f34
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [esp + 0x28]
xor ebx, ebx
push eax
push dword [edi + 4]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [edi + 0x44], ebx
jne 0x401f18
xor eax, eax
jmp 0x4020c2
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
push 0x26200a
push eax
push ecx
lea eax, [esp + 0x54]
push eax
call fcn.004024d2
mov dword [esp + 0x90], ebx
lea eax, [esp + 0x48]
lea esi, [esp + 0x20]
call fcn.004023f1
mov byte [esp + 0x90], 1
mov eax, dword [edi + 0x44]
cmp eax, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebx
jle 0x40207d
jmp 0x401f6d
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x10]
lea ecx, [edi + 0x40]
call fcn.00402287
mov esi, dword [eax]
lea eax, [esp + 0x38]
push eax
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x58]
push eax
push esi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
sub esp, 0x10
mov edi, esp
push dword [esp + 0x24]
lea esi, [esp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_GetWindowDC]
lea ecx, [esp + 0x78]
push ecx
mov ecx, eax
call fcn.00401105
mov byte [esp + 0x90], 2
push dword [esp + 0x14]
mov esi, dword [ebp + 8]
push dword [esp + 0x6c]
mov ecx, esi
call fcn.00402111
cmp eax, ebx
je 0x402059
push 2
lea eax, [esp + 0x3c]
push eax
push dword [esi + 4]
push ebx
call dword [sym.imp.USER32.dll_MapWindowPoints]
push dword [esp + 0x80]
call fcn.004d010e
mov edi, eax
pop ecx
mov dword [esp + 0x1c], edi
mov byte [esp + 0x90], 3
mov esi, edi
call fcn.0040258a
push eax
call fcn.0040256a
push eax
push dword [esp + 0x44]
mov eax, edi
push dword [esp + 0x44]
lea esi, [esp + 0x30]
call fcn.004025aa
mov byte [esp + 0x90], 2
cmp edi, ebx
je 0x402059
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov byte [esp + 0x90], 1
lea eax, [esp + 0x68]
push eax
call fcn.004020da
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
jl 0x401f6a
lea esi, [esp + 0x48]
call fcn.00402345
push eax
call fcn.0040258a
push eax
call fcn.0040256a
push eax
push ebx
push ebx
mov ecx, esi
call fcn.00402361
mov esi, eax
mov byte [esp + 0x90], bl
push dword [esp + 0x20]
call sub.gdiplus.dll_GdipDeleteGraphics
or dword [esp + 0x90], 0xffffffff
lea eax, [esp + 0x48]
push eax
call fcn.00402415
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4