Function at 0x40d1c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d641b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
push edi
push 1
push 0xffffffffffffffff
mov eax, dword [esi + 0xc]
push 0x100c
push eax
call dword [sym.imp.user32.dll_SendMessageA]
push eax
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.004124c0
mov edi, eax
mov eax, dword [esi + 0x430]
xor ebx, ebx
cmp eax, ebx
je 0x40d571
cmp edi, ebx
je 0x40d571
cmp dword [edi + 0x3c], ebx
jl 0x40d571
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [esi + 0x208]
mov ecx, dword [eax + 0x30]
cmp ecx, ebx
je 0x40d251
mov eax, dword [edi + 0x68]
push eax
call fcn.00454cb0
push eax
call dword [sym.imp.kernel32.dll_lstrcmpi]
test eax, eax
jne 0x40d251
cmp dword [esp + 0x78], ebx
je 0x40d586
mov ecx, dword [esi + 0x208]
push ebp
push ebx
push ebx
call fcn.0045d120
push 0x5c
call fcn.004c7e90
add esp, 4
mov dword [esp + 0x7c], eax
cmp eax, ebx
mov dword [esp + 0x74], ebx
je 0x40d284
mov ecx, dword [edi + 0x68]
push ecx
mov ecx, eax
call fcn.004537e0
mov ebp, eax
jmp 0x40d286
xor ebp, ebp
push 0xffffffffffffffff
mov ecx, ebp
mov dword [esp + 0x78], 0xffffffff
call fcn.00454890
cmp dword [edi + 0x2c], eax
jne 0x40d2d4
push 0xffffffffffffffff
mov ecx, ebp
call fcn.004548f0
cmp dword [edi + 0x30], eax
jne 0x40d2d4
push 0xffffffffffffffff
mov ecx, ebp
call fcn.00454950
cmp dword [edi + 0x34], eax
jne 0x40d2d4
mov ecx, ebp
call fcn.00456650
cmp dword [edi + 0x38], eax
jne 0x40d2d4
mov ecx, ebp
call fcn.00454480
cmp dword [edi + 0x3c], eax
je 0x40d40c
push 0xffffffffffffffff
mov ecx, ebp
call fcn.00454890
push 0xffffffffffffffff
mov ecx, ebp
mov dword [edi + 0x2c], eax
call fcn.004548f0
push 0xffffffffffffffff
mov ecx, ebp
mov dword [edi + 0x30], eax
call fcn.00454950
mov ecx, ebp
mov dword [edi + 0x34], eax
call fcn.00456650
mov ecx, ebp
mov dword [edi + 0x38], eax
call fcn.00454480
mov dword [edi + 0x3c], eax
mov eax, dword [0x4fb708]
cmp eax, ebx
je 0x40d31f
mov dword [esi + 0x40c], 1
mov dword [esi + 0x410], 1
mov eax, dword [0x4fb8b8]
cmp eax, ebx
je 0x40d40c
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x34]
mov eax, dword [edi + 0x30]
push ebx
push ebx
push ecx
mov ecx, dword [edi + 0x2c]
push edx
mov edx, dword [edi + 0x3c]
push eax
push ecx
push edx
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.00456950
mov ecx, dword [esi + 0xc]
add esp, 0x24
push ecx
call dword [sym.imp.user32.dll_GetDC]
mov edx, dword [esi + 0xc]
push 0
push 0
push 0x31
push edx
mov ebx, eax
call dword [sym.imp.user32.dll_SendMessageA]
push eax
push ebx
call dword [sym.imp.gdi32.dll_SelectObject]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.kernel32.dll_lstrlen]
lea edx, [esp + 0x20]
push eax
push edx
push ebx
call dword [sym.imp.gdi32.dll_GetTextExtentPoint32A]
mov eax, dword [esi + 0xc]
push ebx
push eax
call dword [sym.imp.user32.dll_ReleaseDC]
push 4
mov ecx, esi
call fcn.00416460
mov ecx, dword [esi + 0xc]
mov ebx, dword [sym.imp.user32.dll_SendMessageA]
push 0
push eax
push 0x101d
push ecx
mov dword [esp + 0x8c], eax
call ebx
mov ecx, dword [0x4fb840]
test ecx, ecx
je 0x40d3f9
mov ecx, dword [esp + 0x14]
lea edx, [ecx + 0xc]
cmp eax, edx
jge 0x40d3f9
mov eax, dword [esp + 0x7c]
add ecx, 0xc
and ecx, 0xffff
push ecx
mov ecx, dword [esi + 0xc]
push eax
push 0x101e
push ecx
call ebx
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0xc]
push eax
push eax
push 0x1015
push edx
call ebx
xor ebx, ebx
mov eax, dword [0x4fb824]
cmp eax, 4
ja case.default.0x40d416
jmp dword [eax*4 + 0x40d59c]
mov ecx, dword [esi + 0x208]
push 0x3ff00000
push ebx
call fcn.0045e390
jmp case.default.0x40d416
mov ecx, dword [esi + 0x208]
push 0x3fe00000
push ebx
call fcn.0045e390
jmp case.default.0x40d416
mov ecx, dword [esi + 0x208]
push 0x3fd00000
push ebx
call fcn.0045e390
jmp case.default.0x40d416
mov ecx, dword [esi + 0x208]
push 0x3fc00000
push ebx
call fcn.0045e390
jmp case.default.0x40d416
mov eax, dword [esi + 0x1fc]
mov ecx, dword [esi + 0x1f4]
sub eax, ecx
mov ecx, dword [esi + 0x1f8]
inc eax
push eax
mov eax, dword [esi + 0x1f0]
sub ecx, eax
inc ecx
push ecx
mov ecx, dword [esi + 0x208]
call fcn.0045e5c0
mov ecx, dword [esi + 0x208]
push 4
push ebp
call fcn.0045d120
mov ecx, dword [esi + 0x208]
push ebx
call fcn.0045e350
cmp dword [esi + 0x4c4], 8
jne 0x40d4c9
mov ecx, esi
call fcn.00419cd0
test eax, eax
je 0x40d4c9
mov eax, 1
jmp 0x40d4cb
xor eax, eax
mov ecx, dword [esi + 0x208]
push eax
call fcn.0045dfd0
mov ecx, dword [esi + 0x208]
push 1
push 1
call fcn.0045d440
mov ecx, esi
call fcn.00413090
cmp dword [edi + 0x3c], ebx
jge 0x40d544
mov ecx, dword [esi + 0x208]
push ebx
push ebx
call fcn.0045d120
mov eax, dword [esp + 0x10]
mov dword [edi + 0x38], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x3c], 0xffffffff
mov edx, dword [esi + 0xc]
push eax
push eax
push 0x1015
push edx
call dword [sym.imp.user32.dll_SendMessageA]
push ebx
mov ecx, esi
call fcn.00414140
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret 4
cmp ebp, ebx
je 0x40d554
mov ecx, dword [esi + 0x208]
push ebx
call fcn.0045e0e0
push ebx
mov ecx, esi
call fcn.00414140
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret 4
mov ecx, dword [esi + 0x208]
push ebx
push ebx
call fcn.0045d120
push ebx
mov ecx, esi
call fcn.00414140
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 4