Function at 0x484e0c
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 0x485608
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 0x4855bc
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.004719f8
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 0x484efd
mov ebp, dword [esp + 0x120]
test ebp, ebp
je 0x485508
mov edx, dword [esi + 0xa0]
mov edi, dword [edx + 8]
test edi, edi
jne 0x484f1e
jmp 0x485db6
mov edi, dword [edi + 0xa8]
test edi, edi
je 0x485584
mov eax, dword [edi + 0x70]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
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 0x484f10
cmp dword [ebx + 0x14], 2
je 0x485590
mov ecx, dword [ebx + 0x8c]
mov dword [esp + 0x3c], ecx
test ecx, ecx
je 0x485c38
mov edx, dword [ebx + 0x98]
mov dword [esp + 0x68], edx
test edx, edx
je 0x48552e
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x485540
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.004772e0
mov ebp, eax
mov ecx, dword [esp + 0x120]
test ecx, ecx
jne 0x485564
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x485c1a
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.004772e0
mov edi, eax
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x485571
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.0042f6dc
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.0042f8a8
mov eax, dword [esp + 0x38]
mov dword [esp + 0x40], eax
mov eax, dword [esi]
mov edx, dword [ebx + 0x14]
test edx, edx
je 0x48500d
test byte [ebx + 0x9f], 0x40
je 0x48500f
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.00477128
mov eax, dword [ebx]
cmp eax, 4
je 0x4859d0
cmp eax, 5
je 0x485618
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.0043b340
mov edi, dword [esp + 0x4c]
add edi, ebp
add edi, dword [esp + 0x84]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4857b4
lea edx, [esp + 0x88]
mov dword [esp + 8], edx
lea edx, [esp + 0x8c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0042ec20
cmp dword [ebx + 0x68], 3
je case.0x485798.3
mov dword [esp + 0x44], 1
mov eax, dword [ebx + 0x10]
test eax, eax
jle 0x485548
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
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.0042fd7c
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0x44]
test ecx, ecx
jne 0x485774
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 0x485a60
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x48515d
test byte [ebx + 0x9c], 1
jne 0x48596c
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.0042e928
cmp dword [ebx + 0x68], 3
je 0x4858f8
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x485271
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 [0x68bb7c]
call dword [eax + 0x558]
mov dword [esp + 0x44], eax
call fcn.004344c0
dec eax
je 0x485bf9
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.0047d108
test byte [esp + 0x124], 2
je 0x485af4
cmp dword [ebx + 0x14], 2
je 0x4856fc
mov edi, dword [esp + 0x4c]
add edi, dword [ebx + 0x60]
add edi, dword [ebx + 0x64]
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x4857ac
mov dword [esp], eax
mov eax, dword [0x68bb7c]
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.004344c0
dec eax
mov ecx, dword [esp + 0x34]
je 0x48590c
test ecx, ecx
je 0x48530c
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.0047d108
test byte [esp + 0x124], 1
je 0x48543a
mov ecx, dword [ebx]
test ecx, ecx
jne 0x48543a
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 0x485370
mov eax, dword [ebx + 0x48]
mov edx, dword [ebx + 4]
test eax, eax
je 0x485e56
mov dword [esp + 4], eax
mov eax, dword [edx]
mov dword [esp], eax
call fcn.004772e0
mov dword [esp], eax
call fcn.00476854
mov eax, dword [eax]
mov ebp, dword [esp + 0x3c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x14]
cmp eax, 2
je 0x48579f
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.00483e54
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 0x4857f8
mov edi, dword [ebx + 0x28]
test edi, edi
je 0x4854fa
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.00471a9c
add esp, 0xec
pop ebx
pop esi
pop edi
pop ebp
mov ebp, dword [ebx + 0x90]
mov dword [esp + 0x3c], ebp
test ebp, ebp
je 0x485c44
mov ebp, dword [esi]
mov edx, dword [ebx + 0x98]
mov dword [esp + 0x68], edx
test edx, edx
jne 0x484f72
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0x68], ecx
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x484f7d
mov eax, dword [esi + 0x24]
jmp 0x484f7d
mov eax, dword [esp + 0x44]
test eax, eax
je 0x485124
mov dword [esp + 0x44], 1
jmp 0x485124
mov edi, eax
mov eax, dword [ebx + 0x54]
test eax, eax
jne 0x484fc0
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x40], ecx
jmp 0x484ffb
mov eax, dword [ebx + 0x14]
cmp eax, 2
jne 0x484f4e
mov edi, dword [esi + 0x40]
test edi, edi
je 0x484f4e
mov eax, dword [ebx + 0x94]
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x484f60
mov edx, dword [esi + 0x54]
mov dword [esp + 0x3c], edx
jmp 0x484f60
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 0x484ee7
mov edi, 0xfffffffa
mov ebp, 3
jmp 0x484e2e
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x485445
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.004772e0
mov ebp, eax
mov eax, dword [esp + 0x9c]
movsx edx, ax
cmp edi, edx
jle 0x485445
mov dword [esp + 0x4c], ebx
mov ebx, esi
mov esi, dword [esp + 0x50]
jmp 0x4856e6
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.00476c94
mov eax, dword [esp + 0x9c]
add eax, 0xc
mov word [esp + 0x9c], ax
movsx ecx, ax
cmp edi, ecx
jle 0x485c22
add eax, 6
movsx ecx, ax
cmp edi, ecx
jge 0x48568c
mov word [esp + 0xa0], di
jmp 0x485694
mov eax, dword [esi + 0x40]
test eax, eax
je 0x485e7d
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x48527b
mov edx, dword [esi + 0x60]
test edx, edx
je 0x48527b
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.00482f48
jmp 0x48527b
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x54], eax
cmp eax, ecx
jge 0x48578b
mov dword [esp + 0x54], ecx
cmp dword [ebx + 0x68], 5
ja case.0x485798.3
mov ecx, dword [ebx + 0x68]
jmp dword [ecx*4 + 0x611a7c]
mov eax, 0x11
jmp 0x485387
xor ecx, ecx
jmp 0x4852a0
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x485c2b
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.0047a5cc
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.0047a4b0
jmp 0x4850c9
mov eax, dword [ebx]
cmp eax, 1
je 0x485808
cmp eax, 3
jne 0x485445
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x485445
test byte [ebx + 0x9c], 1
je 0x485445
cmp dword [ebx + 0x14], 1
je 0x485f52
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.0043b340
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.0043b340
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 0x485eac
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.00483e54
jmp 0x485445
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x485271
jmp 0x4851c6
cmp dword [ebx + 0x14], 2
jne 0x4852cf
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4852cf
test ecx, ecx
je 0x48530c
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 0x485f5f
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov dword [eax + 8], edx
jmp 0x4852d3
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.0042e928
jmp 0x4851bc
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.004772e0
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.00476c94
jmp 0x485445
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4851bc
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.0047a5cc
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.00472120
jmp 0x4851bc
mov eax, dword [ebx + 0x18]
test eax, eax
js 0x485271
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x485271
lea edx, [esp + 0x90]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0x6d0]
mov ecx, dword [esp + 0x90]
cmp dword [ebx + 0x18], ecx
jge 0x485271
mov dword [esp + 4], 0
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
mov eax, dword [0x68bb7c]
call dword [eax + 0xac]
mov edx, eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [0x68bb7c]
mov dword [esp + 0x38], edx
call dword [eax + 0x51c]
mov ecx, eax
mov dword [esp], eax
mov eax, dword [0x68bb7c]
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.0042fea0
jmp 0x485271
cmp dword [ebx + 0x14], 2
je 0x485dbd
mov ecx, dword [esp + 0x64]
add ecx, dword [esp + 0x78]
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x74]
add eax, edi
jmp 0x485222
mov eax, dword [esi + 0x2c]
jmp 0x484fa5
mov ebx, dword [esp + 0x4c]
jmp 0x485445
mov dword [esp + 0x44], 0
jmp 0x4850db
mov eax, dword [esi + 0x50]
mov dword [esp + 0x3c], eax
jmp 0x484f60
mov ebp, dword [esi + 0x58]
mov dword [esp + 0x3c], ebp
mov ebp, dword [esi]
jmp 0x48551c
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 0x48513e
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 0x48513e
mov edx, dword [esp + 0x44]
add edx, 2
mov dword [esp + 0x74], edx
mov eax, dword [ebx]
cmp eax, 1
je 0x485e5e
cmp eax, 3
je 0x485e5e
sub edx, ebp
mov dword [esp + 0x74], edx
js 0x485fa3
neg ebp
mov dword [esp + 0x44], 1
mov dword [esp + 0x78], 0
mov dword [esp + 0x6c], 0
jmp 0x48513e
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 0x48513e
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 0x48513e
mov ebp, dword [esi]
jmp 0x485587
test byte [ebx + 0x9f], 0x40
jne 0x485210
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.0047d108
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x38]
jmp 0x485222
mov eax, dword [edx + 0x2c]
jmp 0x485351
mov dword [esp + 0x44], 1
mov dword [esp + 0x78], 0
mov dword [esp + 0x6c], 0
xor ebp, ebp
jmp 0x48513e
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 0x48575b
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4858bf
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.00483e54
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
mov dword [eax + 8], edx
jmp 0x4858c5
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x3c], ebp
jmp 0x48582a
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.0047d108
mov ecx, dword [esp + 0x34]
jmp 0x485959
mov dword [esp + 0x74], 0
jmp 0x485cfd