Function at 0x4843d8
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 0x484bd4
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 0x484b88
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.00470fc4
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 0x4844c9
mov ebp, dword [esp + 0x120]
test ebp, ebp
je 0x484ad4
mov edx, dword [esi + 0xa0]
mov edi, dword [edx + 8]
test edi, edi
jne 0x4844ea
jmp 0x485382
mov edi, dword [edi + 0xa8]
test edi, edi
je 0x484b50
mov eax, dword [edi + 0x70]
mov dword [esp], eax
mov eax, dword [0x67bad4]
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 0x4844dc
cmp dword [ebx + 0x14], 2
je 0x484b5c
mov ecx, dword [ebx + 0x8c]
mov dword [esp + 0x3c], ecx
test ecx, ecx
je 0x485204
mov edx, dword [ebx + 0x98]
mov dword [esp + 0x68], edx
test edx, edx
je 0x484afa
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x484b0c
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.004768ac
mov ebp, eax
mov ecx, dword [esp + 0x120]
test ecx, ecx
jne 0x484b30
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4851e6
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.004768ac
mov edi, eax
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x484b3d
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.0042ed70
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.0042ef3c
mov eax, dword [esp + 0x38]
mov dword [esp + 0x40], eax
mov eax, dword [esi]
mov edx, dword [ebx + 0x14]
test edx, edx
je 0x4845d9
test byte [ebx + 0x9f], 0x40
je 0x4845db
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.004766f4
mov eax, dword [ebx]
cmp eax, 4
je 0x484f9c
cmp eax, 5
je 0x484be4
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.0043a9ac
mov edi, dword [esp + 0x4c]
add edi, ebp
add edi, dword [esp + 0x84]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x484d80
lea edx, [esp + 0x88]
mov dword [esp + 8], edx
lea edx, [esp + 0x8c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0042e2b4
cmp dword [ebx + 0x68], 3
je case.0x484d64.3
mov dword [esp + 0x44], 1
mov eax, dword [ebx + 0x10]
test eax, eax
jle 0x484b14
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
mov eax, dword [0x67bad4]
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.0042f410
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0x44]
test ecx, ecx
jne 0x484d40
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 0x48502c
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x484729
test byte [ebx + 0x9c], 1
jne 0x484f38
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.0042dfbc
cmp dword [ebx + 0x68], 3
je 0x484ec4
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x48483d
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 [0x67bad4]
call dword [eax + 0x558]
mov dword [esp + 0x44], eax
call fcn.00433b54
dec eax
je 0x4851c5
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.0047c6d4
test byte [esp + 0x124], 2
je 0x4850c0
cmp dword [ebx + 0x14], 2
je 0x484cc8
mov edi, dword [esp + 0x4c]
add edi, dword [ebx + 0x60]
add edi, dword [ebx + 0x64]
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x484d78
mov dword [esp], eax
mov eax, dword [0x67bad4]
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.00433b54
dec eax
mov ecx, dword [esp + 0x34]
je 0x484ed8
test ecx, ecx
je 0x4848d8
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.0047c6d4
test byte [esp + 0x124], 1
je 0x484a06
mov ecx, dword [ebx]
test ecx, ecx
jne 0x484a06
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 0x48493c
mov eax, dword [ebx + 0x48]
mov edx, dword [ebx + 4]
test eax, eax
je 0x485422
mov dword [esp + 4], eax
mov eax, dword [edx]
mov dword [esp], eax
call fcn.004768ac
mov dword [esp], eax
call fcn.00475e20
mov eax, dword [eax]
mov ebp, dword [esp + 0x3c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x14]
cmp eax, 2
je 0x484d6b
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.00483420
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 0x484dc4
mov edi, dword [ebx + 0x28]
test edi, edi
je 0x484ac6
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.00471068
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 0x485210
mov ebp, dword [esi]
mov edx, dword [ebx + 0x98]
mov dword [esp + 0x68], edx
test edx, edx
jne 0x48453e
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0x68], ecx
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x484549
mov eax, dword [esi + 0x24]
jmp 0x484549
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4846f0
mov dword [esp + 0x44], 1
jmp 0x4846f0
mov edi, eax
mov eax, dword [ebx + 0x54]
test eax, eax
jne 0x48458c
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x40], ecx
jmp 0x4845c7
mov eax, dword [ebx + 0x14]
cmp eax, 2
jne 0x48451a
mov edi, dword [esi + 0x40]
test edi, edi
je 0x48451a
mov eax, dword [ebx + 0x94]
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x48452c
mov edx, dword [esi + 0x54]
mov dword [esp + 0x3c], edx
jmp 0x48452c
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 0x4844b3
mov edi, 0xfffffffa
mov ebp, 3
jmp 0x4843fa
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x484a11
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.004768ac
mov ebp, eax
mov eax, dword [esp + 0x9c]
movsx edx, ax
cmp edi, edx
jle 0x484a11
mov dword [esp + 0x4c], ebx
mov ebx, esi
mov esi, dword [esp + 0x50]
jmp 0x484cb2
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.00476260
mov eax, dword [esp + 0x9c]
add eax, 0xc
mov word [esp + 0x9c], ax
movsx ecx, ax
cmp edi, ecx
jle 0x4851ee
add eax, 6
movsx ecx, ax
cmp edi, ecx
jge 0x484c58
mov word [esp + 0xa0], di
jmp 0x484c60
mov eax, dword [esi + 0x40]
test eax, eax
je 0x485449
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x484847
mov edx, dword [esi + 0x60]
test edx, edx
je 0x484847
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.00482514
jmp 0x484847
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x54], eax
cmp eax, ecx
jge 0x484d57
mov dword [esp + 0x54], ecx
cmp dword [ebx + 0x68], 5
ja case.0x484d64.3
mov ecx, dword [ebx + 0x68]
jmp dword [ecx*4 + 0x6001bc]
mov eax, 0x11
jmp 0x484953
xor ecx, ecx
jmp 0x48486c
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4851f7
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.00479b98
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.00479a7c
jmp 0x484695
mov eax, dword [ebx]
cmp eax, 1
je 0x484dd4
cmp eax, 3
jne 0x484a11
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x484a11
test byte [ebx + 0x9c], 1
je 0x484a11
cmp dword [ebx + 0x14], 1
je 0x48551e
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.0043a9ac
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.0043a9ac
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 0x485478
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.00483420
jmp 0x484a11
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x48483d
jmp 0x484792
cmp dword [ebx + 0x14], 2
jne 0x48489b
mov eax, dword [esi + 0x40]
test eax, eax
je 0x48489b
test ecx, ecx
je 0x4848d8
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 0x48552b
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov dword [eax + 8], edx
jmp 0x48489f
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.0042dfbc
jmp 0x484788
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.004768ac
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.00476260
jmp 0x484a11
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x484788
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.00479b98
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.004716ec
jmp 0x484788
mov eax, dword [ebx + 0x18]
test eax, eax
js 0x48483d
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x48483d
lea edx, [esp + 0x90]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [0x67bad4]
call dword [eax + 0x6d0]
mov ecx, dword [esp + 0x90]
cmp dword [ebx + 0x18], ecx
jge 0x48483d
mov dword [esp + 4], 0
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
mov eax, dword [0x67bad4]
call dword [eax + 0xac]
mov edx, eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [0x67bad4]
mov dword [esp + 0x38], edx
call dword [eax + 0x51c]
mov ecx, eax
mov dword [esp], eax
mov eax, dword [0x67bad4]
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.0042f534
jmp 0x48483d
cmp dword [ebx + 0x14], 2
je 0x485389
mov ecx, dword [esp + 0x64]
add ecx, dword [esp + 0x78]
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x74]
add eax, edi
jmp 0x4847ee
mov eax, dword [esi + 0x2c]
jmp 0x484571
mov ebx, dword [esp + 0x4c]
jmp 0x484a11
mov dword [esp + 0x44], 0
jmp 0x4846a7
mov eax, dword [esi + 0x50]
mov dword [esp + 0x3c], eax
jmp 0x48452c
mov ebp, dword [esi + 0x58]
mov dword [esp + 0x3c], ebp
mov ebp, dword [esi]
jmp 0x484ae8
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 0x48470a
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 0x48470a
mov edx, dword [esp + 0x44]
add edx, 2
mov dword [esp + 0x74], edx
mov eax, dword [ebx]
cmp eax, 1
je 0x48542a
cmp eax, 3
je 0x48542a
sub edx, ebp
mov dword [esp + 0x74], edx
js 0x48556f
neg ebp
mov dword [esp + 0x44], 1
mov dword [esp + 0x78], 0
mov dword [esp + 0x6c], 0
jmp 0x48470a
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 0x48470a
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 0x48470a
mov ebp, dword [esi]
jmp 0x484b53
test byte [ebx + 0x9f], 0x40
jne 0x4847dc
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.0047c6d4
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x38]
jmp 0x4847ee
mov eax, dword [edx + 0x2c]
jmp 0x48491d
mov dword [esp + 0x44], 1
mov dword [esp + 0x78], 0
mov dword [esp + 0x6c], 0
xor ebp, ebp
jmp 0x48470a
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 0x484d27
mov eax, dword [esi + 0x40]
test eax, eax
je 0x484e8b
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.00483420
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
mov dword [eax + 8], edx
jmp 0x484e91
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x3c], ebp
jmp 0x484df6
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.0047c6d4
mov ecx, dword [esp + 0x34]
jmp 0x484f25
mov dword [esp + 0x74], 0
jmp 0x4852c9