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

Disassembly:
sub esp, 0xd8
push ebx
push ebp
mov ebp, dword [esp + 0xe8]
push esi
push edi
push ebp
call fcn.0047f2c0
mov esi, eax
xor edi, edi
add esp, 4
mov dword [esp + 0x24], esi
lea ebx, [esi + 0xfc]
cmp ebx, edi
je 0x4754d1
cmp dword [ebx + 4], edi
je 0x4754d1
mov eax, dword [esp + 0xf4]
cmp eax, 0xe
jl 0x474d41
cmp eax, 0x11
jg 0x474d41
mov eax, 1
jmp 0x474d43
xor eax, eax
push eax
push ebx
mov ecx, esi
call fcn.0047f040
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0xf4]
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
lea eax, [edx - 1]
mov dword [esp + 0x38], edi
cmp eax, 0x10
mov dword [esp + 0x3c], edi
ja case.0x474d8a.7
xor ecx, ecx
mov cl, byte [eax + 0x4754f8]
jmp dword [ecx*4 + 0x4754dc]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x14]
test edx, edx
mov dword [esp + 0x14], ecx
je 0x474dbf
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov edx, dword [ebp + 0x20]
test edx, edx
je 0x474dcd
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x14], ecx
mov edx, dword [ebp + 0x2c]
test edx, edx
je 0x474ddd
mov edx, dword [ebp + 0x24]
add edx, eax
mov dword [esp + 0x18], edx
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x474ded
mov eax, dword [ebp + 0x30]
add eax, ecx
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x10]
call fcn.004b00ad
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0047f190
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x34], eax
push eax
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x84]
mov dword [esp + 0x3c], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x48], edx
call fcn.004ada33
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x114], ecx
mov dword [esi + 0x118], edx
jmp case.0x474d8a.7
mov eax, dword [ebp + 0x24]
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebx + 4]
push eax
push edi
push esi
push ecx
call dword [sym.imp.GDI32.dll_SetPixelV]
push edi
push esi
push edi
lea edx, [esp + 0x3c]
push esi
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov dword [esp + 0x20], 1
jmp case.0x474d8a.7
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x24]
mov ebp, dword [ebp + 0x30]
push edi
lea ecx, [esp + 0x14]
push esi
push ecx
mov ecx, ebx
mov dword [esp + 0x58], eax
call fcn.004ada33
mov edx, dword [esp + 0x4c]
push ebp
push edx
mov ecx, ebx
call fcn.004ada7f
mov eax, dword [esp + 0x4c]
push ebp
push eax
push edi
lea ecx, [esp + 0x3c]
push esi
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov dword [esp + 0x20], 1
jmp case.0x474d8a.7
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
call fcn.004b00ad
mov esi, dword [esp + 0xf4]
cmp esi, 4
jne 0x474f21
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [ebx + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Ellipse]
jmp 0x475073
cmp esi, 8
jne 0x474f49
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
jmp 0x475073
cmp esi, 9
jne 0x474f9e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jne 0x474f5f
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jne 0x474f70
inc eax
mov dword [esp + 0x18], eax
mov ecx, dword [ebx + 8]
push 2
push ecx
call dword [sym.imp.GDI32.dll_GetCurrentObject]
push eax
call fcn.004aded9
test eax, eax
je 0x474f89
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebx + 4]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x47507b
cmp esi, 0xa
jne 0x474fd9
mov ecx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x3c]
test ecx, ecx
jne 0x474fb1
mov ebp, eax
jmp 0x474fb4
mov ebp, dword [ebp + 0x48]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebp
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_RoundRect]
jmp 0x475073
cmp esi, 0xb
jne 0x474ff2
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_InvertRect]
jmp 0x47507b
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x48]
mov edx, dword [ebp + 0x54]
mov ebp, dword [ebp + 0x60]
sub esi, 5
je 0x475051
dec esi
je 0x47502d
dec esi
jne 0x475073
push ebp
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_Pie]
jmp 0x475073
push ebp
push edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_Chord]
jmp 0x475073
push ebp
push edx
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [ebx + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Arc]
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
jmp case.0x474d8a.7
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x48]
push eax
push ecx
call fcn.00474cc0
mov ebx, eax
mov eax, dword [esp + 0x50]
cdq
sub eax, edx
add esp, 8
mov esi, eax
mov eax, dword [ebp + 0x20]
sar esi, 1
test eax, eax
je 0x4750ce
mov ebp, dword [ebp + 0x18]
cmp esi, ebp
jl 0x4750ce
mov esi, ebp
cmp esi, 1
jle case.0x474d8a.7
xor edi, edi
xor edx, edx
mov ebp, closesocket
mov ecx, ebx
test esi, esi
mov dword [esp + 0x20], ebp
jle 0x47511d
mov dword [esp + 0x2c], esi
mov eax, dword [ecx]
cmp eax, edi
jle 0x4750f6
mov edi, eax
cmp eax, dword [esp + 0x20]
jge 0x475100
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 4]
cmp eax, edx
jle 0x475109
mov edx, eax
cmp eax, ebp
jge 0x47510f
mov ebp, eax
mov eax, dword [esp + 0x2c]
add ecx, 8
dec eax
mov dword [esp + 0x2c], eax
jne 0x4750ee
push edx
mov edx, dword [esp + 0x24]
push edi
push ebp
lea eax, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0x24]
push esi
push ebx
mov dword [esp + 0x28], 1
mov edx, dword [ecx + 0x100]
lea eax, [ecx + 0xfc]
push edx
call dword [sym.imp.GDI32.dll_Polygon]
jmp case.0x474d8a.7
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x114]
mov edx, dword [eax + 0x118]
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x40], ecx
cmp eax, 0x11
mov dword [esp + 0x44], edx
jne 0x475196
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x475188
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x475196
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x44], ecx
mov edi, 0x5125cc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x84]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x54]
lea edi, [esp + 0x84]
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [ebx + 8]
not ecx
dec ecx
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0xec]
mov eax, dword [esp + 0xf4]
dec ecx
cmp eax, 0x11
jne 0x4751ff
sub ecx, 2
test ecx, ecx
jle 0x475430
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x48], ecx
sub eax, 0x11
neg eax
sbb eax, eax
and al, 0xfe
add eax, 3
lea edx, [eax + eax*2]
lea ebp, [ebp + edx*4 + 8]
mov dword [esp + 0x2c], ebp
jmp 0x47522f
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp]
push eax
call fcn.00474770
add esp, 4
test eax, eax
je 0x475255
lea ecx, [esp + 0x84]
add ebp, 0xfffffff8
push ecx
push ebp
call fcn.00474a20
add esp, 8
jmp 0x4752b1
mov eax, dword [ebp]
cmp eax, 0x80000004
jne 0x475264
mov ebp, dword [ebp - 8]
jmp 0x4752b8
cmp eax, 0x80000002
jne 0x475281
mov eax, dword [ebp - 8]
lea edx, [esp + 0x84]
push edx
push eax
call fcn.00474ad0
add esp, 8
jmp 0x4752b1
cmp eax, reloc.WS2_32.dll_closesocket
jne 0x4752a2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
lea ecx, [esp + 0x84]
push ecx
push edx
push eax
call fcn.00474ba0
add esp, 0xc
jmp 0x4752b1
test eax, eax
jne 0x475416
mov byte [esp + 0x84], al
lea ebp, [esp + 0x84]
test ebp, ebp
je 0x475416
mov al, byte [ebp]
test al, al
jne 0x4752ee
mov eax, dword [esp + 0xf4]
cmp eax, 0x10
je 0x475416
cmp eax, 0x11
je 0x475416
mov ecx, dword [esp + 0x58]
xor ebx, ebx
mov dword [esp + 0x50], ecx
xor esi, esi
jmp 0x475359
mov esi, ebp
cmp al, 0xd
je 0x475300
cmp al, 0xa
je 0x475300
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4752f0
mov al, byte [esi]
test al, al
je 0x47530f
mov byte [esp + 0x2b], al
mov byte [esi], 0
jmp 0x475311
xor esi, esi
cmp byte [ebp], 0
jne 0x475323
mov edx, dword [esp + 0x58]
xor ebx, ebx
mov dword [esp + 0x50], edx
jmp 0x475359
lea eax, [esp + 0x10]
mov edi, ebp
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x2c]
push ebp
mov edx, dword [ecx + 0x104]
lea eax, [ecx + 0xfc]
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x50], eax
cmp byte [ebp], 0
je 0x4753d6
mov ecx, dword [esp + 0x24]
mov edi, ebp
mov edx, dword [ecx + 0xfc]
lea eax, [ecx + 0xfc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x44]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x44]
push ebp
push eax
mov eax, dword [esp + 0x30]
push ecx
lea ecx, [eax + 0xfc]
call dword [edx + 0x5c]
test ebx, ebx
jne 0x4753a0
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4753d6
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x6c], eax
lea ecx, [ebx + eax]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x70], eax
add edx, eax
mov dword [esp + 0x74], ecx
lea eax, [esp + 0x6c]
mov dword [esp + 0x78], edx
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.USER32.dll_UnionRect]
test esi, esi
jne 0x4753e4
cmp dword [esp + 0xf4], 0xe
jne 0x475412
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x50]
test esi, esi
lea edx, [eax + ecx + 2]
mov dword [esp + 0x44], edx
je 0x475416
mov al, byte [esp + 0x2b]
mov byte [esi], al
mov al, byte [esi + 1]
inc esi
cmp al, 0xa
jne 0x475407
inc esi
test esi, esi
mov ebp, esi
je 0x475416
jmp 0x4752c0
add dword [esp + 0x40], ebx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x48]
add ecx, 0xc
dec eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x48], eax
jne 0x47522b
cmp dword [esp + 0xf4], 0x11
je case.0x474d8a.7
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [eax + 0x114], ecx
mov dword [eax + 0x118], edx
mov esi, dword [esp + 0x24]
mov ecx, esi
lea eax, [esi + 0xfc]
push eax
call fcn.0047f150
lea ecx, [esp + 0x30]
call fcn.004b00ad
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4754b1
mov eax, dword [esi + 0x60]
test eax, eax
je 0x4754b1
mov eax, dword [esi + 0x68]
cmp eax, 1
jge 0x475489
mov eax, 1
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub ebx, eax
sub edi, eax
add edx, eax
add ecx, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x4754d1
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x30]
push 1
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret