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

Disassembly:
push 0xffffffffffffffff
push 0x483996
mov eax, dword fs:[0]
push eax
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4b70]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0x2fc], edi
je 0x411997
cmp dword [ebx + 0x394], edi
jne 0x411997
lea ecx, [esp + 0x48]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.0043d033
mov dword [esp + 0x12c], edi
mov ebp, vtable.CBitmap.0
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebp
lea eax, [esp + 0x5c]
mov byte [esp + 0x12c], 1
mov ecx, dword [ebx + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebx + 0x154]
cmp eax, edi
mov ecx, dword [ebx + 0x1fc]
je 0x410855
cmp eax, 1
je 0x410855
cmp eax, 2
jne 0x410869
mov edx, dword [esp + 0x68]
sub edx, dword [ebx + 0x1dc]
sub edx, dword [esp + 0x60]
mov dword [ebx + 0x1fc], edx
jmp 0x410869
mov eax, dword [esp + 0x64]
sub eax, dword [ebx + 0x1dc]
sub eax, dword [esp + 0x5c]
mov dword [ebx + 0x1fc], eax
cmp ecx, dword [ebx + 0x1fc]
je 0x410949
mov esi, dword [ebx + 0xd4]
call fcn.00429710
mov esi, ebx
call fcn.0040e590
mov eax, dword [ebx + 0x154]
cmp eax, edi
je 0x4108f3
cmp eax, 1
je 0x4108f3
cmp eax, 2
jne 0x410949
mov eax, dword [ebx + 0xe4]
add eax, 0xffffffff
xor ecx, ecx
cmp eax, edi
setl cl
push edi
sub ecx, 1
and eax, ecx
push eax
push 4
mov ecx, ebx
call fcn.00407fc0
call fcn.0040e130
mov eax, ebx
call fcn.00415b10
mov ecx, ebx
call fcn.00415240
mov edx, dword [esp + 0x68]
sub edx, dword [esp + 0x60]
cmp dword [ebx + 0x288], edx
jl 0x410949
mov byte [esp + 0x12c], 0
mov dword [esp + 0x34], ebp
jmp 0x41197a
mov eax, dword [ebx + 0xe4]
add eax, 0xffffffff
xor ecx, ecx
cmp eax, edi
setl cl
push edi
sub ecx, 1
and eax, ecx
push eax
push 4
mov ecx, ebx
call fcn.004081d0
mov esi, ebx
call fcn.0040e130
mov eax, ebx
call fcn.00415b10
mov ecx, ebx
call fcn.00415240
mov edx, dword [esp + 0x68]
sub edx, dword [esp + 0x60]
cmp dword [ebx + 0x280], edx
jl 0x410949
mov byte [esp + 0x12c], 0
mov dword [esp + 0x34], ebp
jmp 0x41197a
mov ecx, dword [ebx + 0x108]
cmp ecx, dword [ebx + 0x120]
mov eax, dword [ebx + 0x324]
mov dword [esp + 0x6c], eax
jne 0x410981
mov edx, dword [ebx + 0x10c]
cmp edx, dword [ebx + 0x124]
jne 0x410981
mov eax, dword [ebx + 0x110]
cmp eax, dword [ebx + 0x128]
je 0x411461
mov ecx, dword [esp + 0x134]
mov edx, dword [ecx]
mov edx, dword [edx + 0x50]
lea eax, [esp + 0xc8]
push eax
call edx
cmp dword [ebx + 0x290], edi
je 0x4109d9
mov ecx, dword [ebx + 0x208]
add ecx, dword [ebx + 0x1e0]
mov eax, dword [ebx + 0x298]
imul ecx, eax
cmp eax, edi
mov dword [ebx + 0x290], edi
jle 0x4109d0
mov edx, dword [esp + 0xd0]
sub edx, ecx
mov dword [esp + 0xc8], edx
jmp 0x4109d9
neg ecx
mov dword [esp + 0xd0], ecx
cmp dword [ebx + 0x294], edi
je 0x410a2a
mov eax, dword [ebx + 0x29c]
cmp eax, edi
mov dword [ebx + 0x294], edi
jle 0x410a12
mov edx, dword [ebx + 0x20c]
add edx, dword [ebx + 0x1e0]
imul edx, eax
mov eax, dword [esp + 0xd4]
sub eax, edx
mov dword [esp + 0xcc], eax
jmp 0x410a2a
mov ecx, dword [ebx + 0x20c]
add ecx, dword [ebx + 0x1e0]
imul ecx, eax
neg ecx
mov dword [esp + 0xd4], ecx
mov eax, dword [ebx + 0x154]
cmp eax, edi
je 0x410a88
cmp eax, 1
je 0x410a88
cmp eax, 2
jne 0x410af7
mov ecx, dword [ebx + 0x208]
add ecx, dword [ebx + 0x1e0]
mov eax, dword [esp + 0x5c]
cdq
idiv ecx
mov edx, dword [ebx + 0x288]
xor ecx, ecx
lea eax, [eax + edx - 1]
cmp eax, edi
setl cl
sub ecx, 1
and ecx, eax
mov eax, dword [esp + 0x64]
mov ebp, ecx
mov ecx, dword [ebx + 0x208]
add ecx, dword [ebx + 0x1e0]
cdq
idiv ecx
mov edx, dword [ebx + 0x288]
jmp 0x410acc
mov ecx, dword [ebx + 0x20c]
add ecx, dword [ebx + 0x1e0]
mov eax, dword [esp + 0x60]
cdq
idiv ecx
mov edx, dword [ebx + 0x280]
xor ecx, ecx
lea eax, [eax + edx - 1]
cmp eax, edi
setl cl
sub ecx, 1
and ecx, eax
mov eax, dword [esp + 0x68]
mov ebp, ecx
mov ecx, dword [ebx + 0x20c]
add ecx, dword [ebx + 0x1e0]
cdq
idiv ecx
mov edx, dword [ebx + 0x280]
lea esi, [eax + edx]
mov edx, dword [ebx + 0xd4]
call fcn.0042a300
sub eax, 1
cmp eax, esi
jge 0x410af1
mov edx, dword [ebx + 0xd4]
call fcn.0042a300
mov esi, eax
sub esi, 1
mov dword [esp + 0x18], esi
jmp 0x410aff
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x18]
mov edx, dword [ebx + 0xd4]
call fcn.0042a300
cmp ebp, eax
jge 0x41196a
cmp ebp, esi
jg 0x41196a
mov ecx, dword [esp + 0x134]
mov eax, dword [ecx]
mov edx, dword [ebx + 0x22c]
mov eax, dword [eax + 0x28]
push edx
call eax
lea esi, [ebx + 0x2f8]
mov dword [ebx + 0x230], eax
call fcn.00420aa0
mov esi, dword [ebx + 0xd4]
push ebp
lea ecx, [esp + 0xf4]
push ecx
mov dword [esp + 0x44], ebp
call fcn.0042a530
lea ecx, [esp + 0x1c]
call fcn.0040dc10
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x6c]
lea esp, [esp]
mov eax, dword [ebx + 0x154]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], ecx
je 0x410bc5
cmp eax, 1
je 0x410bc5
mov edi, dword [ebx + 0x208]
mov eax, dword [ebx + 0x1dc]
add edi, dword [ebx + 0x1e0]
add eax, dword [ebx + 0x1fc]
jmp 0x410bdd
mov edi, dword [ebx + 0x1dc]
mov eax, dword [ebx + 0x20c]
add edi, dword [ebx + 0x1fc]
add eax, dword [ebx + 0x1e0]
push 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x5c], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x4c]
call fcn.0043d665
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x134]
mov ecx, dword [eax + 4]
push edx
push edi
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x38]
call fcn.0043d92c
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
push edx
push eax
call fcn.0043d9d2
mov ecx, dword [ebx + 0x1b4]
mov edx, dword [esp + 0x44]
push ecx
push edx
push edi
push 0
push 0
lea ecx, [esp + 0x5c]
call fcn.0045030b
mov eax, dword [ebx + 0x154]
test eax, eax
jne 0x410d0b
mov eax, dword [ebx + 0x20c]
add eax, dword [ebx + 0x1e0]
mov ebp, dword [esp + 0x3c]
sub ebp, dword [ebx + 0x280]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x1d8]
imul ebp, eax
sub esp, 0x18
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x48]
push 0
mov dword [eax + 0x14], edx
push ecx
lea eax, [esp + 0x68]
push eax
lea edi, [esp + 0x114]
mov dword [esp + 0x64], ecx
call fcn.004119d0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push 0xcc0020
mov dword [esp + 0xb4], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0xb8], edx
mov edx, dword [eax + 0xc]
push 0
push 0
mov dword [esp + 0xc4], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0xc8], edx
mov edx, dword [eax + 0x14]
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0xd0], ecx
mov ecx, dword [esp + 0x54]
push ecx
mov dword [esp + 0xd8], edx
mov edx, dword [esp + 0x6c]
push edx
push ebp
push 0
jmp 0x410e36
cmp eax, 1
jne 0x410da1
mov eax, dword [ebx + 0x20c]
add eax, dword [ebx + 0x1e0]
mov ebp, dword [esp + 0x3c]
sub ebp, dword [ebx + 0x280]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x1fc]
imul ebp, eax
sub esp, 0x18
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x48]
push 0
mov dword [eax + 0x14], edx
push ecx
lea eax, [esp + 0x68]
push eax
lea edi, [esp + 0x114]
mov dword [esp + 0x64], ecx
call fcn.004119d0
lea ecx, [esp + 0xb0]
call fcn.0040dc10
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x58]
push 0xcc0020
push 0
push 0
lea ecx, [esp + 0x54]
push ecx
push edx
push eax
push ebp
push 0
jmp 0x410e36
cmp eax, 2
jne 0x410e42
mov ecx, dword [ebx + 0x208]
add ecx, dword [ebx + 0x1e0]
mov eax, dword [esp + 0x3c]
sub eax, dword [ebx + 0x288]
mov edx, dword [esp + 0x20]
mov ebp, dword [ebx + 0x1d8]
imul eax, ecx
mov ecx, dword [esp + 0x24]
sub esp, 0x18
mov dword [esp + 0x58], eax
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 0x10], ecx
push ebp
mov dword [eax + 0x14], edx
push 0
lea eax, [esp + 0x68]
push eax
lea edi, [esp + 0x12c]
call fcn.004119d0
lea ecx, [esp + 0xb0]
call fcn.0040dc10
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x58]
push 0xcc0020
push 0
push 0
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x50]
push edx
push eax
push 0
push ecx
mov ecx, dword [esp + 0x154]
call fcn.00416cf0
lea ecx, [esp + 0x34]
call fcn.0043d97f
lea ecx, [esp + 0x48]
call fcn.0043d6c9
mov edx, dword [ebx + 0x124]
mov edi, dword [ebx + 0x10c]
mov ecx, dword [ebx + 0x128]
mov eax, dword [ebx + 0x120]
mov dword [esp + 0xf4], edx
mov edx, dword [ebx + 0x12c]
mov dword [esp + 0xf4], edi
mov edi, dword [ebx + 0x110]
mov dword [esp + 0xf8], ecx
mov ecx, dword [ebx + 0x134]
mov dword [esp + 0xf8], edi
mov edi, dword [ebx + 0x114]
mov dword [esp + 0xfc], edx
mov edx, dword [ebx + 0x130]
mov dword [esp + 0x104], ecx
mov ecx, dword [ebx + 0x108]
cmp ecx, eax
mov dword [esp + 0xfc], edi
mov edi, dword [ebx + 0x11c]
mov dword [esp + 0x104], edi
jl 0x410ee4
jne 0x410f72
cmp dword [ebx + 0x118], edx
jg 0x410f72
mov edx, dword [ebx + 0x10c]
mov eax, dword [ebx + 0x110]
mov ecx, dword [ebx + 0x114]
mov edi, dword [ebx + 0x108]
mov dword [esp + 0x9c], edx
mov edx, dword [ebx + 0x118]
mov dword [esp + 0xa0], eax
mov eax, dword [ebx + 0x11c]
mov dword [esp + 0xa4], ecx
mov ecx, dword [ebx + 0x120]
mov dword [esp + 0xa8], edx
mov edx, dword [ebx + 0x124]
mov dword [esp + 0xac], eax
mov eax, dword [ebx + 0x128]
mov dword [esp + 0x70], ecx
mov ecx, dword [ebx + 0x12c]
mov dword [esp + 0x74], edx
mov edx, dword [ebx + 0x130]
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 0x134]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
jmp 0x410ffb
mov ecx, dword [ebx + 0x124]
mov edx, dword [ebx + 0x128]
mov eax, dword [ebx + 0x12c]
mov edi, dword [ebx + 0x120]
mov dword [esp + 0x9c], ecx
mov ecx, dword [ebx + 0x130]
mov dword [esp + 0xa0], edx
mov edx, dword [ebx + 0x134]
mov dword [esp + 0xa4], eax
mov eax, dword [ebx + 0x108]
mov dword [esp + 0xa8], ecx
mov ecx, dword [ebx + 0x10c]
mov dword [esp + 0xac], edx
mov edx, dword [ebx + 0x110]
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0x114]
mov dword [esp + 0x74], ecx
mov ecx, dword [ebx + 0x118]
mov dword [esp + 0x78], edx
mov edx, dword [ebx + 0x11c]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [esp + 0xe0], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xec], ecx
mov ecx, dword [ebx + 0xd4]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x2c]
add ecx, 4
test esi, esi
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe8], eax
jl 0x41133b
cmp esi, dword [ecx + 8]
jge 0x41133b
mov eax, esi
imul eax, eax, 0x2c
add eax, dword [ecx + 4]
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + 0x24]
sub esp, 0x18
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x100], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
mov eax, ebx
call fcn.00418da0
add eax, 0xffffffff
cmp eax, 3
ja case.default.0x41109b
jmp dword [eax*4 + 0x4119b4]
mov edx, dword [esp + 0xdc]
mov edi, dword [esp + 0x28]
sub esp, 0x18
mov eax, esp
mov ecx, esi
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x100]
mov ecx, 0x10000
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xfc]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x104]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x38]
sub esp, 0x18
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov edi, dword [esp + 0x5c]
mov dword [eax + 0x10], edi
mov edi, dword [esp + 0x60]
mov dword [eax + 0x14], edi
sub esp, 0x18
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x70]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x110]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edi
push edx
jmp 0x411291
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov edi, dword [esp + 0x28]
sub esp, 0x18
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x94]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x98]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x9c]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0x3c]
sub esp, 0x18
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov edi, dword [esp + 0x5c]
mov dword [eax + 0x10], edi
mov edi, dword [esp + 0x60]
mov dword [eax + 0x14], edi
sub esp, 0x18
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edi
jmp 0x411289
mov edx, dword [esp + 0xe4]
sub esp, 0x18
mov eax, esp
mov ecx, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0xf4]
mov dword [eax + 4], ecx
mov ecx, 0x10000
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x100]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x104]
jmp 0x411220
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
sub esp, 0x18
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x94]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x98]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x9c]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0xb4]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0xb8]
sub esp, 0x18
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xd4]
mov dword [eax + 8], edx
mov edx, dword [esp + 0xd8]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0xdc]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x54]
sub esp, 0x18
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [esp + 0x110]
push eax
mov ecx, dword [esp + 0x88]
mov edi, ebx
call fcn.00418ec0
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
mov esi, dword [esp + 0xb0]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], eax
jle 0x410b70
mov edx, dword [ebx + 0xd4]
call fcn.0042a300
sub eax, 1
cmp dword [esp + 0x18], eax
jl 0x41141f
mov eax, dword [ebx + 0x154]
test eax, eax
je 0x411340
cmp eax, 1
je 0x411340
mov esi, dword [esp + 0x64]
sub esi, dword [ebx + 0x208]
mov edi, dword [ebx + 0x1dc]
sub esi, dword [esp + 0x40]
sub esi, dword [ebx + 0x1e0]
add edi, dword [ebx + 0x1fc]
jmp 0x41135e
call fcn.0043cb4a
mov edi, dword [esp + 0x68]
sub edi, dword [ebx + 0x20c]
mov esi, dword [ebx + 0x1dc]
add esi, dword [ebx + 0x1fc]
sub edi, ebp
sub edi, dword [ebx + 0x1e0]
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x4c]
call fcn.0043d665
mov eax, dword [esp + 0x134]
push edi
push esi
push eax
lea ecx, [esp + 0x40]
call fcn.00416d60
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00416d30
mov edx, dword [ebx + 0x1b4]
push edx
push edi
push esi
push 0
push 0
lea ecx, [esp + 0x5c]
call fcn.0045030b
mov eax, dword [ebx + 0x154]
test eax, eax
je 0x4113e0
cmp eax, 1
je 0x4113e0
cmp eax, 2
jne 0x41140d
mov ecx, dword [ebx + 0x208]
add ecx, dword [esp + 0x40]
push 0xcc0020
add ecx, dword [ebx + 0x1e0]
push 0
push 0
lea eax, [esp + 0x54]
push eax
push edi
push esi
push 0
push ecx
jmp 0x411401
mov eax, dword [ebx + 0x20c]
push 0xcc0020
push 0
push 0
lea edx, [esp + 0x54]
push edx
push edi
add eax, ebp
add eax, dword [ebx + 0x1e0]
push esi
push eax
push 0
mov ecx, dword [esp + 0x154]
call fcn.00416cf0
lea ecx, [esp + 0x34]
call fcn.0043d97f
lea ecx, [esp + 0x48]
call fcn.0043d6c9
mov esi, ebx
call fcn.00415d00
cmp dword [esp + 0x6c], 0
je 0x41145a
mov eax, dword [ebx + 0x204]
mov ecx, dword [ebx + 0x200]
lea esi, [ebx + 0x2f8]
mov dword [esi + 0x18], eax
mov eax, esi
mov dword [esi + 0x14], ecx
call fcn.00420ac0
mov eax, esi
call fcn.00420a40
mov eax, esi
call fcn.00420a40
push 0
jmp 0x411959
cmp dword [ebx + 0x324], edi
je 0x411479
mov eax, dword [ebx + 0x300]
mov edx, dword [eax + 0x20]
push edx
call dword [sym.imp.USER32.dll_HideCaret]
mov eax, dword [esp + 0x134]
mov dword [ebx + 0x324], edi
mov ecx, dword [eax + 8]
push 2
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 1
jne 0x411665
cmp dword [ebx + 0x294], edi
jne 0x4114ab
cmp dword [ebx + 0x290], edi
je 0x4114b1
mov dword [ebx + 0x35c], edi
mov esi, dword [sym.imp.USER32.dll_CopyRect]
lea eax, [ebx + 0x34c]
push eax
lea edx, [esp + 0x8c]
push edx
call esi
cmp dword [ebx + 0x35c], edi
je 0x4114d8
mov dword [ebx + 0x35c], edi
jmp 0x4114e7
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x8c]
push ecx
call esi
mov eax, dword [ebx + 0x154]
cmp eax, edi
je 0x411564
cmp eax, 1
je 0x411564
cmp eax, 2
jne 0x4115d7
mov ecx, dword [ebx + 0x208]
add ecx, dword [ebx + 0x1e0]
mov eax, dword [esp + 0x88]
cdq
idiv ecx
mov edx, dword [ebx + 0x288]
xor ecx, ecx
lea eax, [eax + edx - 1]
cmp eax, edi
setl cl
sub ecx, 1
and ecx, eax
mov eax, dword [esp + 0x90]
mov ebp, ecx
mov ecx, dword [ebx + 0x208]
add ecx, dword [ebx + 0x1e0]
cdq
idiv ecx
mov edx, dword [ebx + 0x288]
lea esi, [eax + edx]
mov edx, dword [ebx + 0xd4]
call fcn.0042a300
sub eax, 1
cmp eax, esi
jl 0x4115c3
mov dword [esp + 0x18], esi
jmp 0x4115db
mov ecx, dword [ebx + 0x20c]
add ecx, dword [ebx + 0x1e0]
mov eax, dword [esp + 0x8c]
cdq
idiv ecx
mov edx, dword [ebx + 0x280]
xor ecx, ecx
lea eax, [eax + edx - 1]
cmp eax, edi
setl cl
sub ecx, 1
and ecx, eax
mov eax, dword [esp + 0x94]
mov ebp, ecx
mov ecx, dword [ebx + 0x20c]
add ecx, dword [ebx + 0x1e0]
cdq
idiv ecx
mov edx, dword [ebx + 0x280]
lea esi, [eax + edx]
mov edx, dword [ebx + 0xd4]
call fcn.0042a300
sub eax, 1
cmp eax, esi
jge 0x41155e
mov edx, dword [ebx + 0xd4]
call fcn.0042a300
sub eax, 1
mov dword [esp + 0x18], eax
jmp 0x4115db
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x94]
sub esi, dword [esp + 0x88]
sub edi, dword [esp + 0x8c]
xor eax, eax
push eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x48], edi
mov dword [ebx + 0x354], eax
mov dword [ebx + 0x34c], eax
mov dword [ebx + 0x350], eax
mov dword [ebx + 0x358], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x4c]
call fcn.0043d665
mov eax, dword [esp + 0x134]
push edi
push esi
push eax
lea ecx, [esp + 0x40]
call fcn.00416d60
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00416d30
mov edx, dword [ebx + 0x1b4]
push edx
push edi
push esi
push 0
push 0
lea ecx, [esp + 0x5c]
call fcn.0045030b
xor edi, edi
jmp 0x411669
mov ebp, dword [esp + 0x40]
mov edx, dword [ebx + 0xd4]
call fcn.0042a300
cmp ebp, eax
jge 0x411912
cmp ebp, dword [esp + 0x18]
jg 0x411912
mov ecx, dword [esp + 0x134]
mov eax, dword [ecx]
mov edx, dword [ebx + 0x22c]
mov eax, dword [eax + 0x28]
push edx
call eax
mov dword [ebx + 0x230], eax
mov eax, dword [ebx + 0x154]
cmp eax, edi
jne 0x411770
mov esi, dword [ebx + 0xd4]
push ebp
lea ecx, [esp + 0x10c]
push ecx
mov dword [ebx + 0x294], edi
call fcn.0042a530
lea ecx, [esp + 0x1c]
call fcn.0040dc10
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
lea ebx, [ebx]
mov ecx, dword [ebx + 0x20c]
add ecx, dword [ebx + 0x1e0]
mov edx, dword [ebx + 0x1d8]
mov eax, ebp
sub eax, dword [ebx + 0x280]
sub esp, 0x18
imul eax, ecx
sub eax, dword [esp + 0xa4]
mov ecx, esp
mov dword [ecx], edi
mov dword [ecx + 4], esi
mov esi, dword [esp + 0x3c]
mov dword [ecx + 8], esi
mov esi, dword [esp + 0x40]
mov dword [ecx + 0xc], esi
mov esi, dword [esp + 0x44]
push eax
push edx
mov dword [ecx + 0x10], esi
mov esi, dword [esp + 0x50]
lea edx, [esp + 0x68]
push edx
lea edi, [esp + 0x12c]
mov dword [ecx + 0x14], esi
call fcn.004119d0
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x14]
add ebp, 1
cmp ebp, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
jle 0x4116e0
jmp 0x4118c5
cmp eax, 1
jne 0x41181a
mov esi, dword [ebx + 0xd4]
push ebp
lea eax, [esp + 0x10c]
push eax
mov dword [ebx + 0x294], edi
call fcn.0042a530
lea ecx, [esp + 0x1c]
call fcn.0040dc10
mov esi, dword [esp + 0x18]
mov ecx, dword [ebx + 0x20c]
add ecx, dword [ebx + 0x1e0]
mov edi, dword [esp + 0x1c]
mov edx, dword [ebx + 0x1fc]
mov eax, ebp
sub eax, dword [ebx + 0x280]
sub esp, 0x18
imul eax, ecx
sub eax, dword [esp + 0xa4]
mov ecx, esp
mov dword [ecx], edi
mov edi, dword [esp + 0x38]
mov dword [ecx + 4], edi
mov edi, dword [esp + 0x3c]
mov dword [ecx + 8], edi
mov edi, dword [esp + 0x40]
mov dword [ecx + 0xc], edi
mov edi, dword [esp + 0x44]
mov dword [ecx + 0x10], edi
mov edi, dword [esp + 0x48]
push eax
push edx
lea edx, [esp + 0x68]
mov dword [ecx + 0x14], edi
push edx
lea edi, [esp + 0x12c]
call fcn.004119d0
lea ecx, [esp + 0x1c]
call fcn.0040dc10
add ebp, 1
cmp ebp, esi
jle 0x4117a0
jmp 0x4118c5
cmp eax, 2
jne 0x4118c5
mov esi, dword [ebx + 0xd4]
push ebp
lea eax, [esp + 0x10c]
push eax
mov dword [ebx + 0x290], 0
call fcn.0042a530
lea ecx, [esp + 0x1c]
call fcn.0040dc10
mov esi, dword [esp + 0x18]
mov edi, edi
mov eax, dword [ebx + 0x208]
add eax, dword [ebx + 0x1e0]
mov edi, dword [esp + 0x1c]
mov edx, dword [ebx + 0x1d8]
mov ecx, ebp
sub ecx, dword [ebx + 0x288]
sub esp, 0x18
imul eax, ecx
sub eax, dword [esp + 0xa0]
mov ecx, esp
mov dword [ecx], edi
mov edi, dword [esp + 0x38]
mov dword [ecx + 4], edi
mov edi, dword [esp + 0x3c]
mov dword [ecx + 8], edi
mov edi, dword [esp + 0x40]
mov dword [ecx + 0xc], edi
mov edi, dword [esp + 0x44]
mov dword [ecx + 0x10], edi
mov edi, dword [esp + 0x48]
push edx
push eax
lea edx, [esp + 0x68]
mov dword [ecx + 0x14], edi
push edx
lea edi, [esp + 0x12c]
call fcn.004119d0
lea ecx, [esp + 0x1c]
call fcn.0040dc10
add ebp, 1
cmp ebp, esi
jle 0x411850
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x58]
push 0xcc0020
push 0
push 0
push eax
mov eax, dword [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x9c]
push edx
mov edx, dword [esp + 0x14c]
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [esp + 0x34]
call fcn.0043d97f
lea ecx, [esp + 0x48]
call fcn.0043d6c9
xor edi, edi
mov esi, ebx
call fcn.00415d00
cmp dword [esp + 0x6c], edi
je 0x41194c
mov eax, dword [ebx + 0x204]
mov ecx, dword [ebx + 0x200]
lea esi, [ebx + 0x2f8]
mov dword [esi + 0x18], eax
mov eax, esi
mov dword [esi + 0x14], ecx
call fcn.00420ac0
mov eax, esi
call fcn.00420a40
mov eax, esi
call fcn.00420a40
lea eax, [ebx + 0x58]
cmp eax, edi
je 0x41196a
cmp dword [eax + 0x20], edi
je 0x41196a
push edi
mov ecx, dword [ebx + 0x78]
push 1
push 0x401
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [esp + 0x12c], 0
mov dword [esp + 0x34], vtable.CBitmap.0
lea ecx, [esp + 0x34]
call fcn.00403060
lea ecx, [esp + 0x48]
mov dword [esp + 0x12c], 0xffffffff
call fcn.0043d6df
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 4