Function at 0x1004c340
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.10054d90
mov esi, eax
xor edi, edi
add esp, 4
mov dword [esp + 0x24], esi
lea ebx, [esi + 0xfc]
cmp ebx, edi
je 0x1004cb21
cmp dword [ebx + 4], edi
je 0x1004cb21
mov eax, dword [esp + 0xf4]
cmp eax, 0xe
jl 0x1004c391
cmp eax, 0x11
jg 0x1004c391
mov eax, 1
jmp 0x1004c393
xor eax, eax
push eax
push ebx
mov ecx, esi
call fcn.10054840
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.0x1004c3da.7
xor ecx, ecx
mov cl, byte [eax + 0x1004cb48]
jmp dword [ecx*4 + 0x1004cb2c]
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 0x1004c40f
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov edx, dword [ebp + 0x20]
test edx, edx
je 0x1004c41d
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x14], ecx
mov edx, dword [ebp + 0x2c]
test edx, edx
je 0x1004c42d
mov edx, dword [ebp + 0x24]
add edx, eax
mov dword [esp + 0x18], edx
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x1004c43d
mov eax, dword [ebp + 0x30]
add eax, ecx
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x10]
call fcn.100807a1
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.10054990
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.1007e121
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x114], ecx
mov dword [esi + 0x118], edx
jmp case.0x1004c3da.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.0x1004c3da.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.1007e121
mov edx, dword [esp + 0x4c]
push ebp
push edx
mov ecx, ebx
call fcn.1007e16d
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.0x1004c3da.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.100807a1
mov esi, dword [esp + 0xf4]
cmp esi, 4
jne 0x1004c571
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 0x1004c6c3
cmp esi, 8
jne 0x1004c599
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 0x1004c6c3
cmp esi, 9
jne 0x1004c5ee
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jne 0x1004c5af
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jne 0x1004c5c0
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.1007e5c7
test eax, eax
je 0x1004c5d9
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 0x1004c6cb
cmp esi, 0xa
jne 0x1004c629
mov ecx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x3c]
test ecx, ecx
jne 0x1004c601
mov ebp, eax
jmp 0x1004c604
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 0x1004c6c3
cmp esi, 0xb
jne 0x1004c642
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_InvertRect]
jmp 0x1004c6cb
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x48]
mov edx, dword [ebp + 0x54]
mov ebp, dword [ebp + 0x60]
sub esi, 5
je 0x1004c6a1
dec esi
je 0x1004c67d
dec esi
jne 0x1004c6c3
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 0x1004c6c3
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 0x1004c6c3
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.0x1004c3da.7
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x48]
push eax
push ecx
call fcn.1004c310
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 0x1004c71e
mov ebp, dword [ebp + 0x18]
cmp esi, ebp
jl 0x1004c71e
mov esi, ebp
cmp esi, 1
jle case.0x1004c3da.7
xor edi, edi
xor edx, edx
mov ebp, accept
mov ecx, ebx
test esi, esi
mov dword [esp + 0x20], ebp
jle 0x1004c76d
mov dword [esp + 0x2c], esi
mov eax, dword [ecx]
cmp eax, edi
jle 0x1004c746
mov edi, eax
cmp eax, dword [esp + 0x20]
jge 0x1004c750
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 4]
cmp eax, edx
jle 0x1004c759
mov edx, eax
cmp eax, ebp
jge 0x1004c75f
mov ebp, eax
mov eax, dword [esp + 0x2c]
add ecx, 8
dec eax
mov dword [esp + 0x2c], eax
jne 0x1004c73e
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.0x1004c3da.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 0x1004c7e6
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1004c7d8
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x1004c7e6
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x44], ecx
mov edi, 0x100b5278
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 0x1004c84f
sub ecx, 2
test ecx, ecx
jle 0x1004ca80
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 0x1004c87f
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp]
push eax
call fcn.1004bc40
add esp, 4
test eax, eax
je 0x1004c8a5
lea ecx, [esp + 0x84]
add ebp, 0xfffffff8
push ecx
push ebp
call fcn.1004bef0
add esp, 8
jmp 0x1004c901
mov eax, dword [ebp]
cmp eax, 0x80000004
jne 0x1004c8b4
mov ebp, dword [ebp - 8]
jmp 0x1004c908
cmp eax, 0x80000002
jne 0x1004c8d1
mov eax, dword [ebp - 8]
lea edx, [esp + 0x84]
push edx
push eax
call fcn.1004bfa0
add esp, 8
jmp 0x1004c901
cmp eax, reloc.WS2_32.dll_closesocket
jne 0x1004c8f2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
lea ecx, [esp + 0x84]
push ecx
push edx
push eax
call fcn.1004c070
add esp, 0xc
jmp 0x1004c901
test eax, eax
jne 0x1004ca66
mov byte [esp + 0x84], al
lea ebp, [esp + 0x84]
test ebp, ebp
je 0x1004ca66
mov al, byte [ebp]
test al, al
jne 0x1004c93e
mov eax, dword [esp + 0xf4]
cmp eax, 0x10
je 0x1004ca66
cmp eax, 0x11
je 0x1004ca66
mov ecx, dword [esp + 0x58]
xor ebx, ebx
mov dword [esp + 0x50], ecx
xor esi, esi
jmp 0x1004c9a9
mov esi, ebp
cmp al, 0xd
je 0x1004c950
cmp al, 0xa
je 0x1004c950
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1004c940
mov al, byte [esi]
test al, al
je 0x1004c95f
mov byte [esp + 0x2b], al
mov byte [esi], 0
jmp 0x1004c961
xor esi, esi
cmp byte [ebp], 0
jne 0x1004c973
mov edx, dword [esp + 0x58]
xor ebx, ebx
mov dword [esp + 0x50], edx
jmp 0x1004c9a9
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 0x1004ca26
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 0x1004c9f0
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1004ca26
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 0x1004ca34
cmp dword [esp + 0xf4], 0xe
jne 0x1004ca62
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x50]
test esi, esi
lea edx, [eax + ecx + 2]
mov dword [esp + 0x44], edx
je 0x1004ca66
mov al, byte [esp + 0x2b]
mov byte [esi], al
mov al, byte [esi + 1]
inc esi
cmp al, 0xa
jne 0x1004ca57
inc esi
test esi, esi
mov ebp, esi
je 0x1004ca66
jmp 0x1004c910
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 0x1004c87b
cmp dword [esp + 0xf4], 0x11
je case.0x1004c3da.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.10054950
lea ecx, [esp + 0x30]
call fcn.100807a1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1004cb01
mov eax, dword [esi + 0x60]
test eax, eax
je 0x1004cb01
mov eax, dword [esi + 0x68]
cmp eax, 1
jge 0x1004cad9
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 0x1004cb21
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