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

Disassembly:
sub esp, 0x4b8
mov eax, dword [0x514d34]
xor eax, esp
mov dword [esp + 0x4b4], eax
push ebx
mov ebx, dword [esp + 0x4c0]
lea eax, [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x4c8]
push esi
push edi
push 0x2c
xor esi, esi
mov dword [esp + 0x30], ebp
push esi
push eax
mov dword [esp + 0x3c], 0x26
call fcn.00443240
mov edi, 0x400
lea eax, [esp + 0xd0]
push edi
push esi
push eax
call fcn.00443240
lea eax, [esp + 0xdc]
mov dword [esp + 0x58], edi
mov dword [esp + 0x50], eax
lea eax, [esp + 0x48]
push eax
push dword [ebx + 0x24]
push ebp
call fcn.004a1b1e
mov ecx, dword [ebp + 0x1a]
add esp, 0x24
cmp word [ecx + 0x1e], si
jne 0x4a1e77
mov eax, dword [ebx + 0x24]
cmp eax, dword [ecx + 0x16]
jne 0x4a1e77
or dword [ebx + 0x28], 0x40
mov eax, dword [esp + 0x44]
and eax, 3
mov dword [esp + 0x10], eax
call fcn.0041261f
test ax, ax
je 0x4a2267
mov eax, dword [ebp + 0x1a]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4a2267
lea esi, [ebx + 0x14]
lea edi, [esp + 0xa4]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x30]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004a25de
add esp, 4
mov esi, eax
lea eax, [esp + 0xa4]
mov dword [esp + 0x28], esi
push 0
push eax
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.004a25e2
pop ecx
pop ecx
push eax
push esi
push dword [ebx + 0x10]
push dword [esp + 0x30]
call fcn.0043f213
add esp, 0x18
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.004a25e2
pop ecx
pop ecx
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004a25de
add esp, 4
push eax
mov eax, dword [ebp + 0x1a]
push dword [ebx + 0x10]
push dword [eax + 8]
call fcn.004a2acb
push dword [esp + 0x50]
call fcn.00447230
movzx esi, ax
xor ecx, ecx
inc esi
push 2
pop edi
mov eax, esi
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00441cd2
add esp, 0x20
mov dword [esp + 0x14], eax
push esi
push eax
push 0xffffffffffffffff
push dword [esp + 0x44]
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
lea ecx, [esp + 0x74]
cmp dword [esp + 0x10], edi
push ecx
sete al
xor ebp, ebp
inc ebp
cmp dword [esp + 0x14], ebp
cmove eax, edi
mov dword [esp + 0x24], eax
push esi
or eax, 0x400
push eax
push 0xffffffffffffffff
push dword [esp + 0x24]
lea eax, [esp + 0x44]
push eax
push ebx
call fcn.004a25e2
pop ecx
pop ecx
push eax
mov eax, dword [esp + 0x44]
push dword [esp + 0x40]
push dword [ebx + 0x10]
mov eax, dword [eax + 0x1a]
push dword [eax + 8]
call fcn.004a2a85
mov eax, dword [esp + 0x9c]
add esp, 0x24
sub eax, dword [esp + 0x80]
sub eax, dword [esp + 0x68]
add eax, dword [esp + 0x70]
mov ecx, eax
and ecx, 0x80000001
jns 0x4a1fd3
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4a1fd6
dec eax
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_InflateRect]
lea eax, [esp + 0x6c]
push eax
call esi
push 0
push 0x2d
call dword [sym.imp.USER32.dll_GetSystemMetrics]
imul eax, eax, 0xfffffffd
push eax
lea eax, [esp + 0x6c]
push eax
call esi
cmp dword [ebx + 0x28], ebp
jne 0x4a2013
push ebp
push ebp
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
test dword [esp + 0x44], 0x600
xorps xmm0, xmm0
movups xmmword [esp + 0x84], xmm0
je 0x4a2060
lea esi, [esp + 0x64]
lea edi, [esp + 0x84]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x90]
sub eax, dword [esp + 0x88]
mov esi, dword [esp + 0x6c]
sub eax, 5
cdq
add esi, 0xfffffff7
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [esp + 0x68]
mov dword [esp + 0x18], ecx
jmp 0x4a2072
mov eax, dword [esp + 0x88]
mov esi, dword [esp + 0x84]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x6c]
mov eax, esi
sub eax, dword [esp + 0x8c]
add ecx, eax
mov dword [esp + 0x24], esi
cmp dword [esp + 0x4c], 0xfffffffe
mov dword [esp + 0x6c], ecx
movups xmmword [esp + 0x84], xmm0
je 0x4a20df
lea esi, [esp + 0x64]
lea edi, [esp + 0x84]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x90]
lea edi, [ecx - 0x10]
sub edx, dword [esp + 0x88]
mov eax, edx
mov dword [esp + 0x10], edi
and eax, 0x80000001
jns 0x4a20ca
dec eax
or eax, 0xfffffffe
inc eax
je 0x4a20cd
dec edx
mov esi, dword [esp + 0x24]
lea eax, [edx - 0x10]
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x68]
jmp 0x4a20f1
mov edi, dword [esp + 0x84]
mov eax, dword [esp + 0x88]
mov dword [esp + 0x10], edi
sub edi, dword [esp + 0x8c]
mov dword [esp + 0x1c], eax
add ecx, edi
lea eax, [esp + 0x64]
mov dword [esp + 0x6c], ecx
push eax
mov eax, dword [esp + 0x24]
push 0
or eax, 0x40800
push eax
push 0xffffffffffffffff
push dword [esp + 0x24]
lea eax, [esp + 0x44]
push eax
push ebx
call fcn.004a25e2
mov edi, dword [esp + 0x48]
pop ecx
pop ecx
push eax
push dword [esp + 0x40]
mov eax, dword [edi + 0x1a]
push dword [ebx + 0x10]
push dword [eax + 8]
call fcn.004a2a02
push dword [esp + 0x38]
call fcn.00441cdb
add esp, 0x28
test dword [esp + 0x44], 0x600
je 0x4a223d
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebp
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push dword [ebx + 0x10]
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x10
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
test dword [esp + 0x44], 0x400
mov dword [esp + 0x20], eax
mov dword [esp + 0x84], esi
mov dword [esp + 0x9c], esi
push 4
je 0x4a21d3
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 4]
mov dword [esp + 0x90], ecx
lea edx, [eax + 4]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa4], edx
jmp 0x4a21f9
mov ecx, dword [esp + 0x1c]
lea eax, [esi + 4]
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x9c], ecx
lea eax, [ecx + 4]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x94], eax
lea eax, [esi + 8]
mov dword [esp + 0x98], eax
lea eax, [esp + 0x88]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_Polygon]
push dword [esp + 0x20]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebx + 0x10]
call esi
push dword [esp + 0x28]
push dword [ebx + 0x10]
call esi
push dword [esp + 0x24]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x4c], 0xfffffffe
je 0x4a25c2
mov eax, dword [edi + 0x1a]
push ebp
push dword [esp + 0x20]
push dword [esp + 0x18]
push dword [ebx + 0x10]
push 0
push dword [eax + 0x2e]
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
jmp 0x4a25c2
test byte [ebx + 0x28], 1
lea esi, [ebx + 0x14]
lea edi, [esp + 0x64]
mov eax, 0x2210
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x2010
cmovne esi, eax
test byte [ebx + 0x28], 0x40
je 0x4a228f
or esi, 0x1000
push 0xfffffffffffffff0
push ebp
call fcn.0043b246
pop ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test al, 2
jne 0x4a22a9
or esi, 0x4000
push esi
push 4
lea eax, [esp + 0x6c]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov eax, dword [ebp + 0x1a]
push dword [eax]
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
xor ebp, ebp
mov dword [esp + 0x60], eax
inc ebp
push ebp
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_SetBkMode]
push 2
pop edi
mov dword [esp + 0x24], eax
xor eax, eax
cmp dword [esp + 0x10], edi
sete al
cmp dword [esp + 0x10], ebp
cmove eax, edi
mov dword [esp + 0x20], eax
or eax, 0x400
push eax
lea eax, [esp + 0x78]
push eax
push 0xffffffffffffffff
push dword [esp + 0x44]
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x80]
sub eax, dword [esp + 0x68]
add eax, dword [esp + 0x70]
mov ecx, eax
and ecx, 0x80000001
jns 0x4a2330
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4a2333
dec eax
mov esi, dword [sym.imp.USER32.dll_InflateRect]
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
push 0
lea eax, [esp + 0x6c]
push eax
call esi
push 0
push 0x2d
call dword [sym.imp.USER32.dll_GetSystemMetrics]
imul eax, eax, 0xfffffffd
push eax
lea eax, [esp + 0x6c]
push eax
call esi
test byte [ebx + 0x28], 1
je 0x4a2372
push ebp
push ebp
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
test dword [esp + 0x44], 0x600
xorps xmm0, xmm0
movups xmmword [esp + 0x84], xmm0
je 0x4a23bf
lea esi, [esp + 0x64]
lea edi, [esp + 0x84]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x90]
sub eax, dword [esp + 0x88]
mov edi, dword [esp + 0x6c]
sub eax, 5
cdq
add edi, 0xfffffff7
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [esp + 0x68]
mov dword [esp + 0x18], ecx
jmp 0x4a23d1
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x84]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x6c]
mov eax, edi
sub eax, dword [esp + 0x8c]
add ecx, eax
mov dword [esp + 0x10], edi
cmp dword [esp + 0x4c], 0xfffffffe
mov dword [esp + 0x6c], ecx
movups xmmword [esp + 0x84], xmm0
je 0x4a2448
lea esi, [esp + 0x64]
lea edi, [esp + 0x84]
movsd dword es:[edi], dword [esi]
lea eax, [ecx - 0x10]
mov dword [esp + 0x14], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x90]
sub edx, dword [esp + 0x88]
mov eax, edx
and eax, 0x80000001
jns 0x4a2429
dec eax
or eax, 0xfffffffe
inc eax
je 0x4a242c
dec edx
mov edi, dword [esp + 0x10]
lea eax, [edx - 0x10]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x14]
sar esi, 1
add esi, dword [esp + 0x68]
mov dword [esp + 0x1c], esi
jmp 0x4a245e
mov eax, dword [esp + 0x88]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x14], eax
sub eax, dword [esp + 0x8c]
add ecx, eax
mov eax, dword [esp + 0x20]
or eax, 0x40800
mov dword [esp + 0x6c], ecx
push eax
lea eax, [esp + 0x68]
push eax
push 0xffffffffffffffff
push dword [esp + 0x44]
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_DrawTextA]
test dword [esp + 0x44], 0x600
je 0x4a2580
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 0x10
call esi
push eax
push ebp
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push dword [ebx + 0x10]
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x10
mov dword [esp + 0x14], eax
call esi
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebx + 0x10]
call esi
test dword [esp + 0x44], 0x400
mov dword [esp + 0x20], eax
mov dword [esp + 0xa4], edi
mov dword [esp + 0xbc], edi
push 4
je 0x4a251a
mov eax, dword [esp + 0x1c]
lea ecx, [edi + 4]
mov dword [esp + 0xb0], ecx
lea edx, [eax + 4]
mov dword [esp + 0xac], edx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc4], edx
jmp 0x4a2540
mov ecx, dword [esp + 0x1c]
lea eax, [edi + 4]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xbc], ecx
lea eax, [ecx + 4]
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xb4], eax
lea eax, [edi + 8]
mov dword [esp + 0xb8], eax
lea eax, [esp + 0xa8]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_Polygon]
push dword [esp + 0x20]
push dword [ebx + 0x10]
call esi
push dword [esp + 0x10]
push dword [ebx + 0x10]
call esi
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4a2586
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esp + 0x4c], 0xfffffffe
je 0x4a25ac
mov eax, dword [esp + 0x14]
push ebp
push dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x38]
push dword [ebx + 0x10]
push 0
mov eax, dword [eax + 0x1a]
push dword [eax + 0x2e]
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
push dword [esp + 0x24]
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [esp + 0x60]
push dword [ebx + 0x10]
call esi
mov ecx, dword [esp + 0x4c4]
mov ax, bp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00441a5e
add esp, 0x4b8
ret