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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xec
mov ebx, dword [esp + 0x100]
mov esi, dword [ebx + 4]
cmp dword [esi + 0x1c], 2
je 0x484eec
xor edi, edi
xor ebp, ebp
add edi, dword [esp + 0x11c]
mov dword [esp + 0x60], edi
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x484ea0
lea eax, [esp + 0x94]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x104]
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.004712dc
mov dword [esp + 0x58], eax
mov dword [esp], eax
call sub.GDI32.dll_CreateCompatibleDC
push edx
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x11c]
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x118]
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call sub.GDI32.dll_CreateCompatibleBitmap
sub esp, 0xc
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sub.GDI32.dll_SelectObject
sub esp, 8
mov dword [esp + 0x70], eax
mov dword [esp + 0xb0], 3
mov eax, dword [esp + 0x48]
mov dword [esp + 0xb4], eax
lea edx, [esp + 0xb0]
mov dword [esp + 0x50], edx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x4847e1
mov ebp, dword [esp + 0x120]
test ebp, ebp
je 0x484dec
mov edx, dword [esi + 0xa0]
mov edi, dword [edx + 8]
test edi, edi
jne 0x484802
jmp 0x48569a
mov edi, dword [edi + 0xa8]
test edi, edi
je 0x484e68
mov eax, dword [edi + 0x70]
mov dword [esp], eax
mov eax, dword [0x67eb7c]
call dword [eax + 0x558]
mov ebp, dword [esi]
mov edx, dword [ebp + 0x2c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x4847f4
cmp dword [ebx + 0x14], 2
je 0x484e74
mov ecx, dword [ebx + 0x8c]
mov dword [esp + 0x3c], ecx
test ecx, ecx
je 0x48551c
mov edx, dword [ebx + 0x98]
mov dword [esp + 0x68], edx
test edx, edx
je 0x484e12
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x484e24
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.00476bc4
mov ebp, eax
mov ecx, dword [esp + 0x120]
test ecx, ecx
jne 0x484e48
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4854fe
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.00476bc4
mov edi, eax
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x484e55
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.0042efc0
mov dword [esp + 0x108], eax
lea eax, [esp + 0xa4]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x108]
mov dword [esp], edx
mov dword [esp + 0x38], eax
call fcn.0042f18c
mov eax, dword [esp + 0x38]
mov dword [esp + 0x40], eax
mov eax, dword [esi]
mov edx, dword [ebx + 0x14]
test edx, edx
je 0x4848f1
test byte [ebx + 0x9f], 0x40
je 0x4848f3
mov ebp, edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x11c]
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x118]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebp
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00476a0c
mov eax, dword [ebx]
cmp eax, 4
je 0x4852b4
cmp eax, 5
je 0x484efc
mov ebp, dword [ebx + 0x60]
lea eax, [esp + 0x84]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov dword [esp], eax
call fcn.0043ac24
mov edi, dword [esp + 0x4c]
add edi, ebp
add edi, dword [esp + 0x84]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x485098
lea edx, [esp + 0x88]
mov dword [esp + 8], edx
lea edx, [esp + 0x8c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0042e504
cmp dword [ebx + 0x68], 3
je case.0x48507c.3
mov dword [esp + 0x44], 1
mov eax, dword [ebx + 0x10]
test eax, eax
jle 0x484e2c
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
mov eax, dword [0x67eb7c]
call dword [eax + 0x558]
mov edx, dword [ebx + 0x10]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x108]
mov dword [esp], eax
call fcn.0042f660
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0x44]
test ecx, ecx
jne 0x485058
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x6c], 0
xor ebp, ebp
mov edx, dword [ebx + 0x28]
test edx, edx
je 0x485344
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x484a41
test byte [ebx + 0x9c], 1
jne 0x485250
mov eax, dword [ebx + 0x84]
sub eax, dword [esp + 0x88]
mov ecx, eax
shr ecx, 0x1f
add eax, ecx
sar eax, 1
add eax, dword [esp + 0x5c]
add eax, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
lea eax, [edi + ebp]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edx
call fcn.0042e20c
cmp dword [ebx + 0x68], 3
je 0x4851dc
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x484b55
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x40]
add eax, dword [ecx]
sub eax, dword [ecx + 4]
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
add eax, dword [esp + 0x5c]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
mov eax, dword [0x67eb7c]
call dword [eax + 0x558]
mov dword [esp + 0x44], eax
call fcn.00433da4
dec eax
je 0x4854dd
mov edx, dword [esp + 0x64]
add edx, dword [esp + 0x78]
mov dword [esp + 0x54], edx
mov eax, dword [esp + 0x74]
add eax, edi
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x108]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.0047c9ec
test byte [esp + 0x124], 2
je 0x4853d8
cmp dword [ebx + 0x14], 2
je 0x484fe0
mov edi, dword [esp + 0x4c]
add edi, dword [ebx + 0x60]
add edi, dword [ebx + 0x64]
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x485090
mov dword [esp], eax
mov eax, dword [0x67eb7c]
call dword [eax + 0x558]
mov ecx, eax
mov edx, dword [esp + 0x60]
mov ebp, dword [esp + 0x40]
add edx, dword [ebp]
sub edx, dword [ebp + 4]
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
sar ebp, 1
add ebp, dword [esp + 0x5c]
mov dword [esp + 0x34], ecx
call fcn.00433da4
dec eax
mov ecx, dword [esp + 0x34]
je 0x4851f0
test ecx, ecx
je 0x484bf0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], edi
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x108]
mov dword [esp + 0xc], eax
mov ebp, dword [esp + 0x3c]
mov dword [esp + 8], ebp
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.0047c9ec
test byte [esp + 0x124], 1
je 0x484d1e
mov ecx, dword [ebx]
test ecx, ecx
jne 0x484d1e
mov ebp, dword [esp + 0x3c]
mov ebp, dword [ebp + 8]
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x3c]
mov ebp, dword [ebp + 0xc]
mov dword [esp + 0x40], ebp
test byte [ebx + 0x9f], 0x40
je 0x484c54
mov eax, dword [ebx + 0x48]
mov edx, dword [ebx + 4]
test eax, eax
je 0x48573a
mov dword [esp + 4], eax
mov eax, dword [edx]
mov dword [esp], eax
call fcn.00476bc4
mov dword [esp], eax
call fcn.00476138
mov eax, dword [eax]
mov ebp, dword [esp + 0x3c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x14]
cmp eax, 2
je 0x485083
cmp eax, 1
sbb eax, eax
and eax, 7
add eax, 7
mov dword [esp], eax
call sub.USER32.dll_GetSysColor
push edx
mov ebp, dword [esp + 0x3c]
mov dword [ebp + 8], eax
mov dword [esp], 6
call sub.USER32.dll_GetSystemMetrics
push ecx
add eax, dword [esp + 0x5c]
mov dword [esp + 0xd4], eax
mov edi, dword [esp + 0x5c]
add edi, dword [esp + 0x60]
mov dword [esp], 6
call sub.USER32.dll_GetSystemMetrics
push edx
sub edi, eax
mov dword [esp + 0xdc], edi
mov eax, dword [esp + 0x4c]
add eax, dword [ebx + 0x60]
add eax, dword [ebx + 0x64]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x118]
mov dword [esp + 0xd8], eax
mov edi, ebp
add edi, 8
mov eax, dword [esi + 4]
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0x7fe3
lea edx, [esp + 0xd0]
mov dword [esp + 4], edx
mov ebp, dword [esp + 0x3c]
add ebp, 0xc
mov dword [esp], ebp
mov ecx, edi
mov edx, dword [esp + 0x50]
call fcn.00483738
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x3c]
mov dword [ebp + 8], eax
mov edx, dword [esp + 0x40]
mov dword [ebp + 0xc], edx
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4850dc
mov edi, dword [ebx + 0x28]
test edi, edi
je 0x484dde
mov dword [esp + 0x20], 0xcc0020
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0x11c]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x118]
mov dword [esp + 0xc], ebp
mov ebp, dword [esp + 0x114]
mov dword [esp + 8], ebp
mov eax, dword [esp + 0x110]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call sub.GDI32.dll_BitBlt
sub esp, 0x24
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sub.GDI32.dll_SelectObject
sub esp, 8
mov dword [esp], eax
call sub.GDI32.dll_DeleteObject
push ebx
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sub.GDI32.dll_DeleteDC
push esi
lea eax, [esp + 0x94]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov ebp, dword [esp + 0x104]
mov dword [esp], ebp
call fcn.00471380
add esp, 0xec
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [ebx + 0x90]
mov dword [esp + 0x3c], ebp
test ebp, ebp
je 0x485528
mov ebp, dword [esi]
mov edx, dword [ebx + 0x98]
mov dword [esp + 0x68], edx
test edx, edx
jne 0x484856
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0x68], ecx
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x484861
mov eax, dword [esi + 0x24]
jmp 0x484861
mov eax, dword [esp + 0x44]
test eax, eax
je 0x484a08
mov dword [esp + 0x44], 1
jmp 0x484a08
mov edi, eax
mov eax, dword [ebx + 0x54]
test eax, eax
jne 0x4848a4
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x40], ecx
jmp 0x4848df
mov eax, dword [ebx + 0x14]
cmp eax, 2
jne 0x484832
mov edi, dword [esi + 0x40]
test edi, edi
je 0x484832
mov eax, dword [ebx + 0x94]
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x484844
mov edx, dword [esi + 0x54]
mov dword [esp + 0x3c], edx
jmp 0x484844
add ebp, dword [esp + 0x114]
mov dword [esp + 0x5c], ebp
mov ebp, dword [esp + 0x114]
mov dword [esp + 0x44], ebp
mov ebp, dword [esp + 0x104]
mov dword [esp + 0x50], ebp
mov eax, dword [esp + 0x110]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x70], 0
jmp 0x4847cb
mov edi, 0xfffffffa
mov ebp, 3
jmp 0x484712
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x484d29
mov ecx, dword [esp + 0x4c]
mov word [esp + 0x9c], cx
mov eax, dword [esp + 0x60]
shr eax, 0x1f
add eax, dword [esp + 0x60]
sar eax, 1
add eax, dword [esp + 0x5c]
mov word [esp + 0x9e], ax
mov word [esp + 0xa2], ax
mov edi, dword [esp + 0x118]
dec edi
mov eax, dword [esi + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.00476bc4
mov ebp, eax
mov eax, dword [esp + 0x9c]
movsx edx, ax
cmp edi, edx
jle 0x484d29
mov dword [esp + 0x4c], ebx
mov ebx, esi
mov esi, dword [esp + 0x50]
jmp 0x484fca
mov word [esp + 0xa0], ax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 2
lea eax, [esp + 0x9c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00476578
mov eax, dword [esp + 0x9c]
add eax, 0xc
mov word [esp + 0x9c], ax
movsx ecx, ax
cmp edi, ecx
jle 0x485506
add eax, 6
movsx ecx, ax
cmp edi, ecx
jge 0x484f70
mov word [esp + 0xa0], di
jmp 0x484f78
mov eax, dword [esi + 0x40]
test eax, eax
je 0x485761
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x484b5f
mov edx, dword [esi + 0x60]
test edx, edx
je 0x484b5f
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x84]
sub eax, ecx
mov ecx, eax
shr ecx, 0x1f
add eax, ecx
sar eax, 1
add eax, dword [esp + 0x5c]
add eax, dword [esp + 0x6c]
mov dword [esp + 0x10], eax
lea eax, [edi + ebp]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.0048282c
jmp 0x484b5f
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x54], eax
cmp eax, ecx
jge 0x48506f
mov dword [esp + 0x54], ecx
cmp dword [ebx + 0x68], 5
ja case.0x48507c.3
mov ecx, dword [ebx + 0x68]
jmp dword [ecx*4 + 0x60239c]
mov eax, 0x11
jmp 0x484c6b
xor ecx, ecx
jmp 0x484b84
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x48550f
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.00479eb0
lea edx, [esp + 0x88]
mov dword [esp + 0xc], edx
lea edx, [esp + 0x8c]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.00479d94
jmp 0x4849ad
mov eax, dword [ebx]
cmp eax, 1
je 0x4850ec
cmp eax, 3
jne 0x484d29
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x484d29
test byte [ebx + 0x9c], 1
je 0x484d29
cmp dword [ebx + 0x14], 1
je 0x485836
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0xc4], ebp
mov eax, dword [ebx + 0x84]
add eax, ebp
mov dword [esp + 0xcc], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov dword [esp], eax
call fcn.0043ac24
lea eax, [esp + 0x90]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov dword [esp], eax
call fcn.0043ac24
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x8c]
add eax, dword [esp + 0x90]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x4c]
add eax, dword [ebx + 0x60]
mov dword [esp + 0xc8], eax
mov ebp, dword [esp + 0x3c]
cmp dword [ebx + 0x14], 2
je 0x485790
lea edi, [ebp + 8]
add ebp, 0xc
mov eax, dword [esi + 4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x7ff8
lea edx, [esp + 0xc0]
mov dword [esp + 4], edx
mov dword [esp], ebp
mov ecx, edi
mov edx, dword [esp + 0x50]
call fcn.00483738
jmp 0x484d29
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x484b55
jmp 0x484aaa
cmp dword [ebx + 0x14], 2
jne 0x484bb3
mov eax, dword [esi + 0x40]
test eax, eax
je 0x484bb3
test ecx, ecx
je 0x484bf0
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
mov dword [esp], 0x14
call sub.USER32.dll_GetSysColor
push edx
mov edx, dword [esp + 0x3c]
mov dword [edx + 8], eax
test byte [ebx + 0x9f], 0x40
mov ecx, dword [esp + 0x34]
je 0x485843
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov dword [eax + 8], edx
jmp 0x484bb7
mov edx, dword [ebx + 0x84]
sub edx, dword [esp + 0x88]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
sar edx, 1
add edx, dword [esp + 0x5c]
add edx, dword [esp + 0x6c]
mov dword [esp + 0x1c], edx
lea edx, [edi + ebp]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0042e20c
jmp 0x484aa0
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x4c]
mov word [esp + 0x9c], cx
mov edi, dword [esp + 0x60]
shr edi, 0x1f
add edi, dword [esp + 0x60]
sar edi, 1
add edi, dword [esp + 0x5c]
mov word [esp + 0x9e], di
mov ebp, dword [esp + 0x118]
lea edx, [ebp + ecx - 1]
mov word [esp + 0xa0], dx
mov word [esp + 0xa2], di
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.00476bc4
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 2
lea edx, [esp + 0x9c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov eax, dword [esi]
mov dword [esp], eax
call fcn.00476578
jmp 0x484d29
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x484aa0
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.00479eb0
mov dword [esp + 0x28], 1
mov edx, dword [ebx + 0x84]
sub edx, dword [esp + 0x88]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
sar edx, 1
add edx, dword [esp + 0x5c]
add edx, dword [esp + 0x6c]
mov dword [esp + 0x24], edx
lea edx, [edi + ebp]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x50]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.00471a04
jmp 0x484aa0
mov eax, dword [ebx + 0x18]
test eax, eax
js 0x484b55
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x484b55
lea edx, [esp + 0x90]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [0x67eb7c]
call dword [eax + 0x6d0]
mov ecx, dword [esp + 0x90]
cmp dword [ebx + 0x18], ecx
jge 0x484b55
mov dword [esp + 4], 0
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
mov eax, dword [0x67eb7c]
call dword [eax + 0xac]
mov edx, eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [0x67eb7c]
mov dword [esp + 0x38], edx
call dword [eax + 0x51c]
mov ecx, eax
mov dword [esp], eax
mov eax, dword [0x67eb7c]
mov dword [esp + 0x34], ecx
call dword [eax + 0x530]
mov edx, dword [esp + 0x38]
sub eax, edx
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x34]
mov eax, ecx
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x5c]
add eax, dword [esp + 0x78]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x40]
add eax, dword [ecx]
sub eax, dword [ecx + 4]
mov ecx, eax
shr ecx, 0x1f
add eax, ecx
sar eax, 1
add eax, dword [esp + 0x54]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x74]
add eax, dword [ebx + 0x60]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x108]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.0042f784
jmp 0x484b55
cmp dword [ebx + 0x14], 2
je 0x4856a1
mov ecx, dword [esp + 0x64]
add ecx, dword [esp + 0x78]
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x74]
add eax, edi
jmp 0x484b06
mov eax, dword [esi + 0x2c]
jmp 0x484889
mov ebx, dword [esp + 0x4c]
jmp 0x484d29
mov dword [esp + 0x44], 0
jmp 0x4849bf
mov eax, dword [esi + 0x50]
mov dword [esp + 0x3c], eax
jmp 0x484844
mov ebp, dword [esi + 0x58]
mov dword [esp + 0x3c], ebp
mov ebp, dword [esi]
jmp 0x484e00
lea ebp, [eax + 2]
mov dword [esp + 0x44], 1
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x6c], 0
jmp 0x484a22
mov ebp, dword [esp + 0x54]
sub ebp, eax
mov eax, ebp
shr ebp, 0x1f
add ebp, eax
sar ebp, 1
mov dword [esp + 0x74], ebp
mov ebp, dword [esp + 0x88]
mov eax, ebp
shr eax, 0x1f
add eax, ebp
sar eax, 1
add eax, 2
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x44]
mov eax, ecx
shr eax, 0x1f
lea ebp, [eax + ecx]
sar ebp, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
neg eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x44], 1
jmp 0x484a22
mov edx, dword [esp + 0x44]
add edx, 2
mov dword [esp + 0x74], edx
mov eax, dword [ebx]
cmp eax, 1
je 0x485742
cmp eax, 3
je 0x485742
sub edx, ebp
mov dword [esp + 0x74], edx
js 0x485887
neg ebp
mov dword [esp + 0x44], 1
mov dword [esp + 0x78], 0
mov dword [esp + 0x6c], 0
jmp 0x484a22
mov ecx, dword [esp + 0x54]
sub ecx, eax
mov edx, ecx
shr edx, 0x1f
add edx, ecx
sar edx, 1
mov dword [esp + 0x74], edx
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x44]
mov eax, ecx
shr eax, 0x1f
lea ebp, [eax + ecx]
sar ebp, 1
mov dword [esp + 0x44], 1
mov dword [esp + 0x78], 0
mov dword [esp + 0x6c], 0
jmp 0x484a22
mov ecx, dword [esp + 0x54]
sub ecx, eax
mov ebp, ecx
shr ebp, 0x1f
add ebp, ecx
sar ebp, 1
mov dword [esp + 0x74], ebp
mov ebp, dword [esp + 0x88]
mov eax, ebp
shr eax, 0x1f
add eax, ebp
sar eax, 1
neg eax
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x44]
mov eax, ecx
shr eax, 0x1f
lea ebp, [eax + ecx]
sar ebp, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
add eax, 2
mov dword [esp + 0x6c], eax
mov dword [esp + 0x44], 1
jmp 0x484a22
mov ebp, dword [esi]
jmp 0x484e6b
test byte [ebx + 0x9f], 0x40
jne 0x484af4
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x7c], ecx
mov dword [esp], 0x14
call sub.USER32.dll_GetSysColor
push edx
mov edx, dword [esp + 0x3c]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x64]
add ecx, dword [esp + 0x78]
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x74]
add eax, edi
mov edx, ecx
inc edx
mov dword [esp + 0x1c], edx
lea edx, [eax + 1]
mov dword [esp + 0x18], edx
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x108]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov edx, dword [esi + 4]
mov dword [esp], edx
mov dword [esp + 0x38], eax
call fcn.0047c9ec
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x38]
jmp 0x484b06
mov eax, dword [edx + 0x2c]
jmp 0x484c35
mov dword [esp + 0x44], 1
mov dword [esp + 0x78], 0
mov dword [esp + 0x6c], 0
xor ebp, ebp
jmp 0x484a22
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x18], ecx
mov ebp, dword [esp + 0x118]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0xc], ebp
mov eax, dword [esi + 0x54]
mov dword [esp + 8], eax
jmp 0x48503f
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4851a3
mov ebp, dword [ebp + 8]
mov dword [esp + 0x4c], ebp
mov dword [esp], 0x14
call sub.USER32.dll_GetSysColor
push ebp
mov ebp, dword [esp + 0x3c]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0xc4]
inc eax
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xcc]
inc eax
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xc0]
inc eax
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0xc8]
inc eax
mov dword [esp + 0xd8], eax
mov edi, ebp
add edi, 8
mov eax, dword [esi + 4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x7ff8
lea edx, [esp + 0xd0]
mov dword [esp + 4], edx
add ebp, 0xc
mov dword [esp], ebp
mov ecx, edi
mov edx, dword [esp + 0x50]
call fcn.00483738
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
mov dword [eax + 8], edx
jmp 0x4851a9
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x3c], ebp
jmp 0x48510e
lea eax, [ebp + 1]
mov dword [esp + 0x1c], eax
lea eax, [edi + 1]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x108]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.0047c9ec
mov ecx, dword [esp + 0x34]
jmp 0x48523d
mov dword [esp + 0x74], 0
jmp 0x4855e1